yui-init.js revision 8da4756238db8135e82e7a654f1421b7ea7b765e
/**
* The YUI module contains the components required for building the YUI seed file.
* This includes the script loading mechanism, the dynamic loader and metadata,
* the module registration system, and the core utilities for the library.
* @module yui
*/
(function() {
var min = ['yui-base'], core, C = Y.config, mods = YUI.Env.mods,
extras, i;
// apply the minimal required functionality
Y.use.apply(Y, min);
Y.log(Y.id + ' initialized', 'info', 'yui');
if (C.core) {
core = C.core;
} else {
core = ['queue-base'];
extras = ['get', 'loader', 'yui-log', 'yui-later'];
for (i=0; i<extras.length; i++) {
if (mods[extras[i]]) {
core.push(extras[i]);
}
}
}
Y.use.apply(Y, core);
})();