Permalink
Browse files

Seed and Loader build for #2532773

  • Loading branch information...
1 parent 51843c9 commit c83081e5a2c574afb43a163222bc1d22f20dbc71 @davglass committed Sep 21, 2012

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -2344,7 +2344,8 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -2387,6 +2388,19 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
if (mods.length) {
Y.log('Refetching modules with new meta-data', 'info', 'loader');
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -2318,7 +2318,8 @@ Y.Loader.prototype = {
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -2358,6 +2359,19 @@ Y.Loader.prototype = {
mods = Y.Object.keys(mods);
if (mods.length) {
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}
@@ -2344,7 +2344,8 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -2387,6 +2388,19 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
if (mods.length) {
Y.log('Refetching modules with new meta-data', 'info', 'loader');
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -2318,7 +2318,8 @@ Y.Loader.prototype = {
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -2358,6 +2359,19 @@ Y.Loader.prototype = {
mods = Y.Object.keys(mods);
if (mods.length) {
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}
@@ -7077,7 +7077,8 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -7120,6 +7121,19 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
if (mods.length) {
Y.log('Refetching modules with new meta-data', 'info', 'loader');
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -7021,7 +7021,8 @@ Y.Loader.prototype = {
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -7061,6 +7062,19 @@ Y.Loader.prototype = {
mods = Y.Object.keys(mods);
if (mods.length) {
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}
View
@@ -8061,7 +8061,8 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -8104,6 +8105,19 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
if (mods.length) {
Y.log('Refetching modules with new meta-data', 'info', 'loader');
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -7998,7 +7998,8 @@ Y.Loader.prototype = {
var complete = function(d) {
actions++;
- var errs = {}, i = 0, o = 0, u = '', fn;
+ var errs = {}, i = 0, o = 0, u = '', fn,
+ modName, resMods;
if (d && d.errors) {
for (i = 0; i < d.errors.length; i++) {
@@ -8038,6 +8039,19 @@ Y.Loader.prototype = {
mods = Y.Object.keys(mods);
if (mods.length) {
self.require(mods);
+ resMods = self.resolve(true);
+ if (resMods.cssMods.length) {
+ for (i=0; i < resMods.cssMods.length; i++) {
+ modName = resMods.cssMods[i].name;
+ delete YUI.Env._cssLoaded[modName];
+ if (self.isCSSLoaded(modName)) {
+ self.inserted[modName] = true;
+ delete self.required[modName];
+ }
+ }
+ self.sorted = [];
+ self._sort();
+ }
d = null; //bail
self._insert(); //insert the new deps
}

0 comments on commit c83081e

Please sign in to comment.