Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Fixed issue with yui being the only thing in the modules list
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Feb 17, 2011
1 parent 5615e34 commit b9a5cfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/yui3-rls.js
Expand Up @@ -171,7 +171,7 @@ exports.rls = function(YUI, config, fn) {
}
}
}
if (bootstrapCore && files.length) {
if (bootstrapCore) {
files.unshift(YUI.GlobalConfig.base + 'yui/yui-min.js');
}

Expand Down Expand Up @@ -205,12 +205,16 @@ exports.rls = function(YUI, config, fn) {
[].concat(files, Y.config._cssLoad).forEach(function(v) {
d[v] = fileData[v];
});
var sorted = [];
if (Y.Env && Y.Env._loader && Y.Env._loader.sorted) {
sorted = Y.Env._loader.sorted;
}
//console.log(Y.Env._loader.moduleInfo);
fn(null, {
js : files,
css : Y.config._cssLoad,
d: d,
sorted : Y.Env._loader.sorted,
sorted : sorted,
Y: Y
});
};
Expand Down

0 comments on commit b9a5cfd

Please sign in to comment.