yui/yui3 — pull request #256 by davglass (2012-09-12 16:37:01+00:00)
Title: This is a regression that fails to load some intl modules

If the module has meta-data that is not provided up front, the language file fails to get reprocessed.

This is a port of some of the Loader/Seed enhancements that I have been planning and working on for a while. It basically moves some of the "dep" loading from the seed back into Loader before giving it back to the seed.

The idea here is that when a module comes in (I'm limiting this patch to skinned or lang modules) and Loader see's some meta-data that's new, it will reprocess those modules internally and fetch any new dependencies before handing it back to the YUI object.

Currently Loader would hand it back, without refetching, then YUI would process it to look for missing dependencies. The problem with this is that the parent module isn't missing, so the Seed assumes that it's dependencies are already there. But the Lang module is not, since the meta-data for it arrived after the module was already loaded.

I have also added a test for this issue and it passes in all target environments.