yui-init.js revision c744d97ebbf47004385f51ea7a2a6375ad555f75
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp/**
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp * The YUI module contains the components required for building the YUI seed file.
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp * This includes the script loading mechanism, a simple queue, and the core utilities for the library.
a75ebc38c1de401b679953a9b87bd323f0f48d02Tripp * @module yui
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp * @submodule yui-base
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp */
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp
e393eced613f9b4a5fb6bdd461d0e0bf5064d5ecTripp(function() {
e393eced613f9b4a5fb6bdd461d0e0bf5064d5ecTripp
e393eced613f9b4a5fb6bdd461d0e0bf5064d5ecTripp // // var min = ['yui-base'],
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp // var core, C = Y.config, mods = YUI.Env.mods, extras, i;
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp
82d0cf8c731b23f6a2fbb31e3e696e629444363eTripp // // apply the minimal required functionality
87a49173dbc22a145cb87e605cca83fd42524377Tripp // // Y.use.apply(Y, min);
87a49173dbc22a145cb87e605cca83fd42524377Tripp
87a49173dbc22a145cb87e605cca83fd42524377Tripp // if (C.core) {
87a49173dbc22a145cb87e605cca83fd42524377Tripp // core = C.core;
87a49173dbc22a145cb87e605cca83fd42524377Tripp // } else {
87a49173dbc22a145cb87e605cca83fd42524377Tripp // core = [];
87a49173dbc22a145cb87e605cca83fd42524377Tripp // extras = ['get', 'loader', 'yui-log', 'yui-later'];
87a49173dbc22a145cb87e605cca83fd42524377Tripp
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // for (i=0; i<extras.length; i++) {
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // if (mods[extras[i]]) {
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // core.push(extras[i]);
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // }
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // }
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // }
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // Y.use.apply(Y, core);
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp // Y.log(Y.id + ' initialized', 'info', 'yui');
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp})();
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp
2b02938d1550d7e1cea52d019c56997ff08d40c3Tripp