2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add('loader-base', function(Y) {
13 * @submodule loader-base
16 if (!YUI.Env[Y.version]) {
19 var VERSION = Y.version,
21 ROOT = VERSION + BUILD,
22 CDN_BASE = Y.Env.base,
23 GALLERY_VERSION = 'gallery-2010.12.16-18-24',
26 YUI2_VERSION = '2.8.2',
27 COMBO_BASE = CDN_BASE + 'combo?',
28 META = { version: VERSION,
31 comboBase: COMBO_BASE,
32 skin: { defaultSkin: 'sam',
33 base: 'assets/skins/',
44 yui2Update = function(tnt, yui2) {
45 var root = TNT + '.' +
46 (tnt || TNT_VERSION) + '/' +
47 (yui2 || YUI2_VERSION) + BUILD;
48 groups.yui2.base = CDN_BASE + root;
49 groups.yui2.root = root;
51 galleryUpdate = function(tag) {
52 var root = (tag || GALLERY_VERSION) + BUILD;
53 groups.gallery.base = CDN_BASE + root;
54 groups.gallery.root = root;
62 comboBase: COMBO_BASE,
63 update: galleryUpdate,
64 patterns: { 'gallery-': { },
65 'gallerycss-': { type: 'css' } }
71 comboBase: COMBO_BASE,
75 configFn: function(me) {
76 if (/-skin|reset|fonts|grids|base/.test(me.name)) {
78 me.path = me.path.replace(/\.js/, '.css');
79 // this makes skins in builds earlier than
80 // 2.6.0 work as long as combine is false
81 me.path = me.path.replace(/\/yui2-skin/,
82 '/assets/skins/sam/yui2-skin');
92 YUI.Env[VERSION] = META;
99 * Loader dynamically loads script and css files. It includes the dependency
100 * info for the version of the library in use, and will automatically pull in
101 * dependencies for the modules requested. It supports rollup files and will
102 * automatically use these when appropriate in order to minimize the number of
103 * http connections required to load all of the dependencies. It can load the
104 * files from the Yahoo! CDN, and it can utilize the combo service provided on
105 * this network to reduce the number of http connections required to download
109 * @submodule loader-base
113 NO_REQUIREMENTS = [],
114 MAX_URL_LENGTH = (Y.UA.ie) ? 2048 : 8192,
115 GLOBAL_ENV = YUI.Env,
116 GLOBAL_LOADED = GLOBAL_ENV._loaded,
123 oeach = YObject.each,
125 _queue = GLOBAL_ENV._loaderQueue,
126 META = GLOBAL_ENV[VERSION],
127 SKIN_PREFIX = 'skin-',
129 ON_PAGE = GLOBAL_ENV.mods,
132 _path = function(dir, file, type, nomin) {
133 var path = dir + '/' + file;
137 path += '.' + (type || CSS);
143 * The component metadata is stored in Y.Env.meta.
144 * Part of the loader module.
151 * Loader dynamically loads script and css files. It includes the dependency
152 * info for the version of the library in use, and will automatically pull in
153 * dependencies for the modules requested. It supports rollup files and will
154 * automatically use these when appropriate in order to minimize the number of
155 * http connections required to load all of the dependencies. It can load the
156 * files from the Yahoo! CDN, and it can utilize the combo service provided on
157 * this network to reduce the number of http connections required to download
160 * While the loader can be instantiated by the end user, it normally is not.
161 * @see YUI.use for the normal use case. The use function automatically will
162 * pull in missing dependencies.
166 * @param {object} o an optional set of configuration options. Valid options:
171 * The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
173 * The root path to prepend to module names for the combo service.
174 * Ex: 2.5.2/build/</li>
177 * A filter to apply to result urls. This filter will modify the default
178 * path for all modules. The default path for the YUI library is the
179 * minified version of the files (e.g., event-min.js). The filter property
180 * can be a predefined filter or a custom filter. The valid predefined
184 * <dd>Selects the debug versions of the library (e.g., event-debug.js).
185 * This option will automatically include the Logger widget</dd>
187 * <dd>Selects the non-minified version of the library (e.g., event.js).
190 * You can also define a custom filter, which must be an object literal
191 * containing a search expression and a replace string:
194 * 'searchExp': "-min\\.js",
195 * 'replaceStr': "-debug.js"
200 * <li>filters: per-component filter specification. If specified
201 * for a given component, this overrides the filter config</li>
203 * Use the YUI combo service to reduce the number of http connections
204 * required to load your dependencies</li>
206 * A list of modules that should never be dynamically loaded</li>
208 * A list of modules that should always be loaded when required, even if
209 * already present on the page</li>
211 * Node or id for a node that should be used as the insertion point for
214 * charset for dynamic nodes (deprecated, use jsAttributes or cssAttributes)
216 * <li>jsAttributes: object literal containing attributes to add to script
218 * <li>cssAttributes: object literal containing attributes to add to link
221 * The number of milliseconds before a timeout occurs when dynamically
222 * loading nodes. If not set, there is no timeout</li>
224 * execution context for all callbacks</li>
226 * callback for the 'success' event</li>
227 * <li>onFailure: callback for the 'failure' event</li>
228 * <li>onCSS: callback for the 'CSSComplete' event. When loading YUI
229 * components with CSS the CSS is loaded first, then the script. This
230 * provides a moment you can tie into to improve
231 * the presentation of the page while the script is loading.</li>
233 * callback for the 'timeout' event</li>
235 * callback executed each time a script or css file is loaded</li>
237 * A list of module definitions. See Loader.addModule for the supported
238 * module metadata</li>
240 * A list of group definitions. Each group can contain specific definitions
241 * for base, comboBase, combine, and accepts a list of modules. See above
242 * for the description of these properties.</li>
243 * <li>2in3: the version of the YUI 2 in 3 wrapper to use. The intrinsic
244 * support for YUI 2 modules in YUI 3 relies on versions of the YUI 2
245 * components inside YUI 3 module wrappers. These wrappers
246 * change over time to accomodate the issues that arise from running YUI 2
247 * in a YUI 3 sandbox.</li>
248 * <li>yui2: when using the 2in3 project, you can select the version of
249 * YUI 2 to use. Valid values * are 2.2.2, 2.3.1, 2.4.1, 2.5.2, 2.6.0,
250 * 2.7.0, 2.8.0, and 2.8.1 [default] -- plus all versions of YUI 2
251 * going forward.</li>
254 Y.Loader = function(o) {
256 var defaults = META.modules,
259 modulekey = META.md5;
262 * Internal callback to handle multiple internal insert() calls
263 * so that css is inserted prior to js
264 * @property _internalCallback
267 // self._internalCallback = null;
270 * Callback that will be executed when the loader is finished
275 // self.onSuccess = null;
278 * Callback that will be executed if there is a failure
282 // self.onFailure = null;
285 * Callback for the 'CSSComplete' event. When loading YUI components
286 * with CSS the CSS is loaded first, then the script. This provides
287 * a moment you can tie into to improve the presentation of the page
288 * while the script is loading.
292 // self.onCSS = null;
295 * Callback executed each time a script or css file is loaded
299 // self.onProgress = null;
302 * Callback that will be executed if a timeout occurs
306 // self.onTimeout = null;
309 * The execution context for all callbacks
311 * @default {YUI} the YUI instance
316 * Data that is passed to all callbacks
322 * Node reference or id where new nodes should be inserted before
323 * @property insertBefore
324 * @type string|HTMLElement
326 // self.insertBefore = null;
329 * The charset attribute for inserted nodes
332 * @deprecated , use cssAttributes or jsAttributes.
334 // self.charset = null;
337 * An object literal containing attributes to add to link nodes
338 * @property cssAttributes
341 // self.cssAttributes = null;
344 * An object literal containing attributes to add to script nodes
345 * @property jsAttributes
348 // self.jsAttributes = null;
351 * The base directory.
354 * @default http://yui.yahooapis.com/[YUI VERSION]/build/
356 self.base = Y.Env.meta.base;
359 * Base path for the combo service
360 * @property comboBase
362 * @default http://yui.yahooapis.com/combo?
364 self.comboBase = Y.Env.meta.comboBase;
367 * Base path for language packs.
369 // self.langBase = Y.Env.meta.langBase;
373 * If configured, the loader will attempt to use the combo
374 * service for YUI resources and configured external resources.
377 * @default true if a base dir isn't in the config
379 self.combine = o.base &&
380 (o.base.indexOf(self.comboBase.substr(0, 20)) > -1);
383 * Max url length for combo urls. The default is 2048 for
384 * internet explorer, and 8192 otherwise. This is the URL
385 * limit for the Yahoo! hosted combo servers. If consuming
386 * a different combo service that has a different URL limit
387 * it is possible to override this default by supplying
388 * the maxURLLength config option. The config option will
389 * only take effect if lower than the default.
393 * Other A-Grade Browsers: Higher that what is typically supported
394 * 'capable' mobile browsers:
399 * @property maxURLLength
402 self.maxURLLength = MAX_URL_LENGTH;
405 * Ignore modules registered on the YUI global
406 * @property ignoreRegistered
409 // self.ignoreRegistered = false;
412 * Root path to prepend to module path for the combo
416 * @default [YUI VERSION]/build/
418 self.root = Y.Env.meta.root;
421 * Timeout value in milliseconds. If set, self value will be used by
422 * the get utility. the timeout event will fire if
430 * A list of modules that should not be loaded, even if
431 * they turn up in the dependency tree
435 // self.ignore = null;
438 * A list of modules that should always be loaded, even
439 * if they have already been inserted into the page.
443 // self.force = null;
448 * Should we allow rollups
449 * @property allowRollup
453 self.allowRollup = true;
456 * A filter to apply to result urls. This filter will modify the default
457 * path for all modules. The default path for the YUI library is the
458 * minified version of the files (e.g., event-min.js). The filter property
459 * can be a predefined filter or a custom filter. The valid predefined
463 * <dd>Selects the debug versions of the library (e.g., event-debug.js).
464 * This option will automatically include the Logger widget</dd>
466 * <dd>Selects the non-minified version of the library (e.g., event.js).
469 * You can also define a custom filter, which must be an object literal
470 * containing a search expression and a replace string:
473 * 'searchExp': "-min\\.js",
474 * 'replaceStr': "-debug.js"
478 * @type string| {searchExp: string, replaceStr: string}
480 // self.filter = null;
483 * per-component filter specification. If specified for a given
484 * component, this overrides the filter config.
491 * The list of requested modules
493 * @type {string: boolean}
498 * If a module name is predefined when requested, it is checked againsts
499 * the patterns provided in this property. If there is a match, the
500 * module is added with the default configuration.
502 * At the moment only supporting module prefixes, but anticipate
503 * supporting at least regular expressions.
507 // self.patterns = Y.merge(Y.Env.meta.patterns);
511 * The library metadata
512 * @property moduleInfo
514 // self.moduleInfo = Y.merge(Y.Env.meta.moduleInfo);
515 self.moduleInfo = {};
517 self.groups = Y.merge(Y.Env.meta.groups);
520 * Provides the information used to skin the skinnable components.
521 * The following skin definition would result in 'skin1' and 'skin2'
522 * being loaded for calendar (if calendar was requested), and
523 * 'sam' for all other skinnable components:
528 * // The default skin, which is automatically applied if not
529 * // overriden by a component-specific skin definition.
530 * // Change this in to apply a different skin globally
531 * defaultSkin: 'sam',
533 * // This is combined with the loader base property to get
534 * // the default root directory for a skin. ex:
535 * // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
536 * base: 'assets/skins/',
538 * // Any component-specific overrides can be specified here,
539 * // making it possible to load different skins for different
540 * // components. It is possible to load more than one skin
541 * // for a given component as well.
543 * calendar: ['skin1', 'skin2']
549 self.skin = Y.merge(Y.Env.meta.skin);
552 * Map of conditional modules
555 self.conditions = {};
557 // map of modules with a hash of modules that meet the requirement
558 // self.provides = {};
561 self._internal = true;
564 cache = GLOBAL_ENV._renderedMods;
567 oeach(cache, function(v, k) {
568 self.moduleInfo[k] = Y.merge(v);
571 cache = GLOBAL_ENV._conditions;
573 oeach(cache, function(v, k) {
574 self.conditions[k] = Y.merge(v);
578 oeach(defaults, self.addModule, self);
581 if (!GLOBAL_ENV._renderedMods) {
582 GLOBAL_ENV._renderedMods = Y.merge(self.moduleInfo);
583 GLOBAL_ENV._conditions = Y.merge(self.conditions);
588 self._internal = false;
593 * List of rollup files found in the library metadata
596 // self.rollups = null;
599 * Whether or not to load optional dependencies for
600 * the requested modules
601 * @property loadOptional
605 // self.loadOptional = false;
608 * All of the derived dependencies in sorted order, which
609 * will be populated when either calculate() or insert()
617 * Set when beginning to compute the dependency tree.
618 * Composed of what YUI reports to be loaded combined
619 * with what has been loaded by any instance on the page
620 * with the version number specified in the metadata.
622 * @type {string: boolean}
624 self.loaded = GLOBAL_LOADED[VERSION];
627 * A list of modules to attach to the YUI instance when complete.
628 * If not supplied, the sorted list of dependencies are applied.
629 * @property attaching
631 // self.attaching = null;
634 * Flag to indicate the dependency tree needs to be recomputed
635 * if insert is called again.
643 * List of modules inserted by the utility
645 * @type {string: boolean}
650 * List of skipped modules during insert() because the module
656 // Y.on('yui:load', self.loadNext, self);
661 * Cached sorted calculate results
669 Y.Loader.prototype = {
673 'searchExp': '-min\\.js',
677 'searchExp': '-min\\.js',
678 'replaceStr': '-debug.js'
682 _inspectPage: function() {
683 oeach(ON_PAGE, function(v, k) {
685 var m = this.moduleInfo[k],
686 req = v.details.requires,
687 mr = m && m.requires;
689 if (!m._inspected && req && mr.length != req.length) {
690 // console.log('deleting ' + m.name);
694 m = this.addModule(v.details, k);
701 // returns true if b is not loaded, and is required
702 // directly or by means of modules it supersedes.
703 _requires: function(mod1, mod2) {
705 var i, rm, after_map, s,
706 info = this.moduleInfo,
709 // key = mod1 + mod2;
711 // if (this.tested[key]) {
712 // return this.tested[key];
715 // if (loaded[mod2] || !m || !other) {
721 after_map = m.after_map;
723 // check if this module should be sorted after the other
724 // do this first to short circut circular deps
725 if (after_map && (mod2 in after_map)) {
729 after_map = other.after_map;
732 if (after_map && (mod1 in after_map)) {
736 // check if this module requires one the other supersedes
737 s = info[mod2] && info[mod2].supersedes;
739 for (i = 0; i < s.length; i++) {
740 if (this._requires(mod1, s[i])) {
746 s = info[mod1] && info[mod1].supersedes;
748 for (i = 0; i < s.length; i++) {
749 if (this._requires(mod2, s[i])) {
755 // check if this module requires the other directly
756 // if (r && YArray.indexOf(r, mod2) > -1) {
757 if (rm && (mod2 in rm)) {
761 // external css files should be sorted below yui css
762 if (m.ext && m.type == CSS && !other.ext && other.type == CSS) {
769 _config: function(o) {
770 var i, j, val, f, group, groupName, self = this;
771 // apply config values
774 if (o.hasOwnProperty(i)) {
776 if (i == 'require') {
778 } else if (i == 'skin') {
779 Y.mix(self.skin, o[i], true);
780 } else if (i == 'groups') {
782 if (val.hasOwnProperty(j)) {
785 self.addGroup(group, groupName);
789 } else if (i == 'modules') {
790 // add a hash of module definitions
791 oeach(val, self.addModule, self);
792 } else if (i == 'gallery') {
793 this.groups.gallery.update(val);
794 } else if (i == 'yui2' || i == '2in3') {
795 this.groups.yui2.update(o['2in3'], o.yui2);
796 } else if (i == 'maxURLLength') {
797 self[i] = Math.min(MAX_URL_LENGTH, val);
811 self.filter = self.FILTER_DEFS[f];
813 self.require('yui-log', 'dump');
820 * Returns the skin module name for the specified skin name. If a
821 * module name is supplied, the returned skin module name is
822 * specific to the module passed in.
824 * @param {string} skin the name of the skin.
825 * @param {string} mod optional: the name of a module to skin.
826 * @return {string} the full skin module name.
828 formatSkin: function(skin, mod) {
829 var s = SKIN_PREFIX + skin;
838 * Adds the skin def to the module info
840 * @param {string} skin the name of the skin.
841 * @param {string} mod the name of the module.
842 * @param {string} parent parent module if this is a skin of a
843 * submodule or plugin.
844 * @return {string} the module name for the skin.
847 _addSkin: function(skin, mod, parent) {
849 info = this.moduleInfo,
851 ext = info[mod] && info[mod].ext;
853 // Add a module definition for the module-specific skin css
855 name = this.formatSkin(skin, mod);
858 pkg = mdef.pkg || mod;
864 path: (parent || pkg) + '/' + sinf.base + skin +
875 /** Add a new module group
877 * <dt>name:</dt> <dd>required, the group name</dd>
878 * <dt>base:</dt> <dd>The base dir for this module group</dd>
879 * <dt>root:</dt> <dd>The root path to add to each combo
881 * <dt>combine:</dt> <dd>combo handle</dd>
882 * <dt>comboBase:</dt> <dd>combo service base path</dd>
883 * <dt>modules:</dt> <dd>the group of modules</dd>
886 * @param {object} o An object containing the module data.
887 * @param {string} name the group name.
889 addGroup: function(o, name) {
890 var mods = o.modules,
892 name = name || o.name;
894 self.groups[name] = o;
897 oeach(o.patterns, function(v, k) {
899 self.patterns[k] = v;
904 oeach(mods, function(v, k) {
906 self.addModule(v, k);
911 /** Add a new module to the component metadata.
913 * <dt>name:</dt> <dd>required, the component name</dd>
914 * <dt>type:</dt> <dd>required, the component type (js or css)
916 * <dt>path:</dt> <dd>required, the path to the script from
918 * <dt>requires:</dt> <dd>array of modules required by this
920 * <dt>optional:</dt> <dd>array of optional modules for this
922 * <dt>supersedes:</dt> <dd>array of the modules this component
924 * <dt>after:</dt> <dd>array of modules the components which, if
925 * present, should be sorted above this one</dd>
926 * <dt>after_map:</dt> <dd>faster alternative to 'after' -- supply
927 * a hash instead of an array</dd>
928 * <dt>rollup:</dt> <dd>the number of superseded modules required
929 * for automatic rollup</dd>
930 * <dt>fullpath:</dt> <dd>If fullpath is specified, this is used
931 * instead of the configured base + path</dd>
932 * <dt>skinnable:</dt> <dd>flag to determine if skin assets should
933 * automatically be pulled in</dd>
934 * <dt>submodules:</dt> <dd>a hash of submodules</dd>
935 * <dt>group:</dt> <dd>The group the module belongs to -- this
936 * is set automatically when it is added as part of a group
937 * configuration.</dd>
939 * <dd>array of BCP 47 language tags of languages for which this
940 * module has localized resource bundles,
941 * e.g., ["en-GB","zh-Hans-CN"]</dd>
942 * <dt>condition:</dt>
943 * <dd>Specifies that the module should be loaded automatically if
944 * a condition is met. This is an object with up to three fields:
945 * [trigger] - the name of a module that can trigger the auto-load
946 * [test] - a function that returns true when the module is to be
948 * [when] - specifies the load order of the conditional module
949 * with regard to the position of the trigger module.
950 * This should be one of three values: 'before', 'after', or
951 * 'instead'. The default is 'after'.
955 * @param {object} o An object containing the module data.
956 * @param {string} name the module name (optional), required if not
957 * in the module data.
958 * @return {object} the module definition or null if
959 * the object passed in did not provide all required attributes.
961 addModule: function(o, name) {
963 name = name || o.name;
974 if (!o.path && !o.fullpath) {
975 o.path = _path(name, name, o.type);
978 o.supersedes = o.supersedes || o.use;
980 o.ext = ('ext' in o) ? o.ext : (this._internal) ? false : true;
981 o.requires = o.requires || [];
983 // Handle submodule logic
984 var subs = o.submodules, i, l, sup, s, smod, plugins, plug,
985 j, langs, packName, supName, flatSup, flatLang, lang, ret,
986 overrides, skinname, when,
987 conditions = this.conditions, trigger;
988 // , existing = this.moduleInfo[name], newr;
990 this.moduleInfo[name] = o;
992 if (!o.langPack && o.lang) {
993 langs = YArray(o.lang);
994 for (j = 0; j < langs.length; j++) {
996 packName = this.getLangPackName(lang, name);
997 smod = this.moduleInfo[packName];
999 smod = this._addLangPack(lang, o, packName);
1005 sup = o.supersedes || [];
1009 if (subs.hasOwnProperty(i)) {
1012 s.path = s.path || _path(name, i, o.type);
1017 sup = sup.concat(s.supersedes);
1020 smod = this.addModule(s, i);
1023 if (smod.skinnable) {
1025 overrides = this.skin.overrides;
1026 if (overrides && overrides[i]) {
1027 for (j = 0; j < overrides[i].length; j++) {
1028 skinname = this._addSkin(overrides[i][j],
1033 skinname = this._addSkin(this.skin.defaultSkin,
1038 // looks like we are expected to work out the metadata
1039 // for the parent module language packs from what is
1040 // specified in the child modules.
1041 if (s.lang && s.lang.length) {
1043 langs = YArray(s.lang);
1044 for (j = 0; j < langs.length; j++) {
1046 packName = this.getLangPackName(lang, name);
1047 supName = this.getLangPackName(lang, i);
1048 smod = this.moduleInfo[packName];
1051 smod = this._addLangPack(lang, o, packName);
1054 flatSup = flatSup || YArray.hash(smod.supersedes);
1056 if (!(supName in flatSup)) {
1057 smod.supersedes.push(supName);
1060 o.lang = o.lang || [];
1062 flatLang = flatLang || YArray.hash(o.lang);
1064 if (!(lang in flatLang)) {
1068 // Add rollup file, need to add to supersedes list too
1071 packName = this.getLangPackName(ROOT_LANG, name);
1072 supName = this.getLangPackName(ROOT_LANG, i);
1074 smod = this.moduleInfo[packName];
1077 smod = this._addLangPack(lang, o, packName);
1080 if (!(supName in flatSup)) {
1081 smod.supersedes.push(supName);
1084 // Add rollup file, need to add to supersedes list too
1092 o.supersedes = YObject.keys(YArray.hash(sup));
1093 o.rollup = (l < 4) ? l : Math.min(l - 1, 4);
1096 plugins = o.plugins;
1098 for (i in plugins) {
1099 if (plugins.hasOwnProperty(i)) {
1102 plug.path = plug.path || _path(name, i, o.type);
1103 plug.requires = plug.requires || [];
1104 plug.group = o.group;
1105 this.addModule(plug, i);
1107 this._addSkin(this.skin.defaultSkin, i, name);
1115 trigger = o.condition.trigger;
1116 when = o.condition.when;
1117 conditions[trigger] = conditions[trigger] || {};
1118 conditions[trigger][name] = o.condition;
1119 // the 'when' attribute can be 'before', 'after', or 'instead'
1120 // the default is after.
1121 if (when && when != 'after') {
1122 if (when == 'instead') { // replace the trigger
1123 o.supersedes = o.supersedes || [];
1124 o.supersedes.push(trigger);
1125 } else { // before the trigger
1126 // the trigger requires the conditional mod,
1127 // so it should appear before the conditional
1128 // mod if we do not intersede.
1130 } else { // after the trigger
1131 o.after = o.after || [];
1132 o.after.push(trigger);
1137 o.after_map = YArray.hash(o.after);
1140 // this.dirty = true;
1143 ret = o.configFn(o);
1144 if (ret === false) {
1145 delete this.moduleInfo[name];
1154 * Add a requirement for one or more module
1156 * @param {string[] | string*} what the modules to load.
1158 require: function(what) {
1159 var a = (typeof what === 'string') ? arguments : what;
1161 Y.mix(this.required, YArray.hash(a));
1165 * Returns an object containing properties for all modules required
1166 * in order to load the requested module
1167 * @method getRequires
1168 * @param {object} mod The module definition from moduleInfo.
1169 * @return {array} the expanded requirement list.
1171 getRequires: function(mod) {
1173 if (!mod || mod._parsed) {
1174 return NO_REQUIREMENTS;
1177 var i, m, j, add, packName, lang,
1178 name = mod.name, cond, go,
1179 adddef = ON_PAGE[name] && ON_PAGE[name].details,
1182 o, skinmod, skindef,
1183 intl = mod.lang || mod.intl,
1184 info = this.moduleInfo,
1187 // pattern match leaves module stub that needs to be filled out
1188 if (mod.temp && adddef) {
1190 mod = this.addModule(adddef, name);
1191 mod.group = old_mod.group;
1192 mod.pkg = old_mod.pkg;
1193 delete mod.expanded;
1196 // if (mod.expanded && (!mod.langCache || mod.langCache == this.lang)) {
1197 if (mod.expanded && (!this.lang || mod.langCache === this.lang)) {
1198 return mod.expanded;
1211 for (i = 0; i < r.length; i++) {
1215 m = this.getModule(r[i]);
1217 add = this.getRequires(m);
1218 intl = intl || (m.expanded_map &&
1219 (INTL in m.expanded_map));
1220 for (j = 0; j < add.length; j++) {
1227 // get the requirements from superseded modules, if any
1230 for (i = 0; i < r.length; i++) {
1232 // if this module has submodules, the requirements list is
1233 // expanded to include the submodules. This is so we can
1234 // prevent dups when a submodule is already loaded and the
1235 // parent is requested.
1236 if (mod.submodules) {
1241 m = this.getModule(r[i]);
1244 add = this.getRequires(m);
1245 intl = intl || (m.expanded_map &&
1246 (INTL in m.expanded_map));
1247 for (j = 0; j < add.length; j++) {
1255 if (o && this.loadOptional) {
1256 for (i = 0; i < o.length; i++) {
1262 add = this.getRequires(m);
1263 intl = intl || (m.expanded_map &&
1264 (INTL in m.expanded_map));
1265 for (j = 0; j < add.length; j++) {
1273 cond = this.conditions[name];
1276 oeach(cond, function(def, condmod) {
1278 if (!hash[condmod]) {
1279 go = def && ((def.ua && Y.UA[def.ua]) ||
1280 (def.test && def.test(Y, r)));
1282 hash[condmod] = true;
1284 m = this.getModule(condmod);
1286 add = this.getRequires(m);
1287 for (j = 0; j < add.length; j++) {
1296 // Create skin modules
1297 if (mod.skinnable) {
1298 skindef = this.skin.overrides;
1299 if (skindef && skindef[name]) {
1300 for (i = 0; i < skindef[name].length; i++) {
1301 skinmod = this._addSkin(skindef[name][i], name);
1305 skinmod = this._addSkin(this.skin.defaultSkin, name);
1310 mod._parsed = false;
1314 if (mod.lang && !mod.langPack && Y.Intl) {
1315 lang = Y.Intl.lookupBestLang(this.lang || ROOT_LANG, mod.lang);
1316 mod.langCache = this.lang;
1317 packName = this.getLangPackName(lang, name);
1319 d.unshift(packName);
1326 mod.expanded_map = YArray.hash(d);
1328 mod.expanded = YObject.keys(mod.expanded_map);
1330 return mod.expanded;
1335 * Returns a hash of module names the supplied module satisfies.
1336 * @method getProvides
1337 * @param {string} name The name of the module.
1338 * @return {object} what this module provides.
1340 getProvides: function(name) {
1341 var m = this.getModule(name), o, s;
1342 // supmap = this.provides;
1348 if (m && !m.provides) {
1353 YArray.each(s, function(v) {
1354 Y.mix(o, this.getProvides(v));
1367 * Calculates the dependency tree, the result is stored in the sorted
1370 * @param {object} o optional options object.
1371 * @param {string} type optional argument to prune modules.
1373 calculate: function(o, type) {
1374 if (o || type || this.dirty) {
1386 if (this.allowRollup) {
1394 _addLangPack: function(lang, m, packName) {
1397 existing = this.moduleInfo[packName];
1401 packPath = _path((m.pkg || name), packName, JS, true);
1403 this.addModule({ path: packPath,
1408 supersedes: [] }, packName, true);
1411 Y.Env.lang = Y.Env.lang || {};
1412 Y.Env.lang[lang] = Y.Env.lang[lang] || {};
1413 Y.Env.lang[lang][name] = true;
1417 return this.moduleInfo[packName];
1421 * Investigates the current YUI configuration on the page. By default,
1422 * modules already detected will not be loaded again unless a force
1423 * option is encountered. Called by calculate()
1427 _setup: function() {
1428 var info = this.moduleInfo, name, i, j, m, l,
1431 for (name in info) {
1432 if (info.hasOwnProperty(name)) {
1437 m.requires = YObject.keys(YArray.hash(m.requires));
1439 // Create lang pack modules
1440 if (m.lang && m.lang.length) {
1441 // Setup root package if the module has lang defined,
1442 // it needs to provide a root language pack
1443 packName = this.getLangPackName(ROOT_LANG, name);
1444 this._addLangPack(null, m, packName);
1452 //l = Y.merge(this.inserted);
1455 // available modules
1456 if (!this.ignoreRegistered) {
1457 Y.mix(l, GLOBAL_ENV.mods);
1460 // add the ignore list to the list of loaded packages
1462 Y.mix(l, YArray.hash(this.ignore));
1465 // expand the list to include superseded modules
1467 if (l.hasOwnProperty(j)) {
1468 Y.mix(l, this.getProvides(j));
1472 // remove modules on the force list from the loaded list
1474 for (i = 0; i < this.force.length; i++) {
1475 if (this.force[i] in l) {
1476 delete l[this.force[i]];
1481 Y.mix(this.loaded, l);
1487 * Builds a module name for a language pack
1488 * @method getLangPackName
1489 * @param {string} lang the language code.
1490 * @param {string} mname the module to build it for.
1491 * @return {string} the language pack module name.
1493 getLangPackName: function(lang, mname) {
1494 return ('lang/' + mname + ((lang) ? '_' + lang : ''));
1498 * Inspects the required modules list looking for additional
1499 * dependencies. Expands the required list to include all
1500 * required modules. Called by calculate()
1504 _explode: function() {
1505 var r = this.required, m, reqs, done = {},
1508 // the setup phase is over, all modules have been created
1511 oeach(r, function(v, name) {
1514 m = self.getModule(name);
1516 var expound = m.expound;
1519 r[expound] = self.getModule(expound);
1520 reqs = self.getRequires(r[expound]);
1521 Y.mix(r, YArray.hash(reqs));
1524 reqs = self.getRequires(m);
1525 Y.mix(r, YArray.hash(reqs));
1532 getModule: function(mname) {
1533 //TODO: Remove name check - it's a quick hack to fix pattern WIP
1538 var p, found, pname,
1539 m = this.moduleInfo[mname],
1540 patterns = this.patterns;
1542 // check the patterns library to see if we should automatically add
1543 // the module with defaults
1545 for (pname in patterns) {
1546 if (patterns.hasOwnProperty(pname)) {
1547 p = patterns[pname];
1549 // use the metadata supplied for the pattern
1550 // as the module definition.
1551 if (mname.indexOf(pname) > -1) {
1560 p.action.call(this, mname, pname);
1562 // ext true or false?
1563 m = this.addModule(Y.merge(found), mname);
1572 // impl in rollup submodule
1573 _rollup: function() { },
1576 * Remove superceded modules and loaded modules. Called by
1577 * calculate() after we have the mega list of all dependencies
1579 * @return {object} the reduced dependency hash.
1582 _reduce: function(r) {
1584 r = r || this.required;
1586 var i, j, s, m, type = this.loadType;
1588 if (r.hasOwnProperty(i)) {
1589 m = this.getModule(i);
1590 // remove if already loaded
1591 if (((this.loaded[i] || ON_PAGE[i]) &&
1592 !this.forceMap[i] && !this.ignoreRegistered) ||
1593 (type && m && m.type != type)) {
1596 // remove anything this module supersedes
1597 s = m && m.supersedes;
1599 for (j = 0; j < s.length; j++) {
1611 _finish: function(msg, success) {
1613 _queue.running = false;
1615 var onEnd = this.onEnd;
1617 onEnd.call(this.context, {
1626 _onSuccess: function() {
1627 var self = this, skipped = Y.merge(self.skipped), fn,
1628 failed = [], rreg = self.requireRegistration,
1631 oeach(skipped, function(k) {
1632 delete self.inserted[k];
1637 oeach(self.inserted, function(v, k) {
1638 var mod = self.getModule(k);
1639 if (mod && rreg && mod.type == JS && !(k in YUI.Env.mods)) {
1642 Y.mix(self.loaded, self.getProvides(k));
1646 fn = self.onSuccess;
1647 msg = (failed.length) ? 'notregistered' : 'success';
1648 success = !(failed.length);
1650 fn.call(self.context, {
1658 self._finish(msg, success);
1660 _onFailure: function(o) {
1661 var f = this.onFailure, msg = 'failure: ' + o.msg;
1663 f.call(this.context, {
1669 this._finish(msg, false);
1672 _onTimeout: function() {
1673 var f = this.onTimeout;
1675 f.call(this.context, {
1681 this._finish('timeout', false);
1685 * Sorts the dependency tree. The last step of calculate()
1691 // create an indexed list
1692 var s = YObject.keys(this.required),
1693 // loaded = this.loaded,
1695 p = 0, l, a, b, j, k, moved, doneKey;
1698 // keep going until we make a pass without moving anything
1704 // start the loop after items that are already sorted
1705 for (j = p; j < l; j++) {
1707 // check the next module on the list to see if its
1708 // dependencies have been met
1711 // check everything below current item and move if we
1712 // find a requirement for the current item
1713 for (k = j + 1; k < l; k++) {
1716 if (!done[doneKey] && this._requires(a, s[k])) {
1718 // extract the dependency so we can move it up
1721 // insert the dependency above the item that
1723 s.splice(j, 0, b[0]);
1725 // only swap two dependencies once to short circut
1726 // circular dependencies
1727 done[doneKey] = true;
1736 // jump out of loop if we moved something
1739 // this item is sorted, move our pointer and keep going
1745 // when we make it here and moved is false, we are
1757 partial: function(partial, o, type) {
1758 this.sorted = partial;
1759 this.insert(o, type, true);
1762 _insert: function(source, o, type, skipcalc) {
1765 // restore the state at the time of the request
1767 this._config(source);
1770 // build the dependency list
1771 // don't include type so we can process CSS and script in
1772 // one pass when the type is not specified.
1777 this.loadType = type;
1783 this._internalCallback = function() {
1785 var f = self.onCSS, n, p, sib;
1787 // IE hack for style overrides that are not being applied
1788 if (this.insertBefore && Y.UA.ie) {
1789 n = Y.config.doc.getElementById(this.insertBefore);
1791 sib = n.nextSibling;
1794 p.insertBefore(n, sib);
1801 f.call(self.context, Y);
1803 self._internalCallback = null;
1805 self._insert(null, null, JS);
1808 this._insert(null, null, CSS);
1813 // set a flag to indicate the load has started
1814 this._loading = true;
1816 // flag to indicate we are done with the combo service
1817 // and any additional files will need to be loaded
1819 this._combineComplete = {};
1826 // Once a loader operation is completely finished, process
1827 // any additional queued items.
1828 _continue: function() {
1829 if (!(_queue.running) && _queue.size() > 0) {
1830 _queue.running = true;
1836 * inserts the requested modules and their dependencies.
1837 * <code>type</code> can be "js" or "css". Both script and
1838 * css are inserted if type is not provided.
1840 * @param {object} o optional options object.
1841 * @param {string} type the type of dependency to insert.
1843 insert: function(o, type, skipsort) {
1844 var self = this, copy = Y.merge(this);
1845 delete copy.require;
1847 _queue.add(function() {
1848 self._insert(copy, o, type, skipsort);
1854 * Executed every time a module is loaded, and if we are in a load
1855 * cycle, we attempt to load the next script. Public so that it
1856 * is possible to call this if using a method other than
1857 * Y.register to determine when scripts are fully loaded
1859 * @param {string} mname optional the name of the module that has
1860 * been loaded (which is usually why it is time to load the next
1863 loadNext: function(mname) {
1864 // It is possible that this function is executed due to something
1865 // else one the page loading a YUI module. Only react when we
1866 // are actively loading something
1867 if (!this._loading) {
1871 var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
1872 comboSource, comboSources, mods, combining, urls, comboBase,
1874 type = self.loadType,
1875 handleSuccess = function(o) {
1876 self.loadNext(o.data);
1878 handleCombo = function(o) {
1879 self._combineComplete[type] = true;
1880 var i, len = combining.length;
1882 for (i = 0; i < len; i++) {
1883 self.inserted[combining[i]] = true;
1889 if (self.combine && (!self._combineComplete[type])) {
1893 self._combining = combining;
1897 // the default combo base
1898 comboBase = self.comboBase;
1905 for (i = 0; i < len; i++) {
1906 comboSource = comboBase;
1907 m = self.getModule(s[i]);
1908 groupName = m && m.group;
1911 group = self.groups[groupName];
1913 if (!group.combine) {
1918 if (group.comboBase) {
1919 comboSource = group.comboBase;
1923 m.root = group.root;
1928 comboSources[comboSource] = comboSources[comboSource] || [];
1929 comboSources[comboSource].push(m);
1932 for (j in comboSources) {
1933 if (comboSources.hasOwnProperty(j)) {
1935 mods = comboSources[j];
1938 for (i = 0; i < len; i++) {
1939 // m = self.getModule(s[i]);
1942 // Do not try to combine non-yui JS unless combo def
1944 if (m && (m.type === type) && (m.combine || !m.ext)) {
1946 frag = (m.root || self.root) + m.path;
1948 if ((url !== j) && (i < (len - 1)) &&
1949 ((frag.length + url.length) > self.maxURLLength)) {
1950 urls.push(self._filter(url));
1955 if (i < (len - 1)) {
1959 combining.push(m.name);
1964 if (combining.length && (url != j)) {
1965 urls.push(self._filter(url));
1970 if (combining.length) {
1973 // if (m.type === CSS) {
1976 attr = self.cssAttributes;
1979 attr = self.jsAttributes;
1983 data: self._loading,
1984 onSuccess: handleCombo,
1985 onFailure: self._onFailure,
1986 onTimeout: self._onTimeout,
1987 insertBefore: self.insertBefore,
1988 charset: self.charset,
1990 timeout: self.timeout,
1998 self._combineComplete[type] = true;
2004 // if the module that was just loaded isn't what we were expecting,
2006 if (mname !== self._loading) {
2011 // The global handler that is called when each module is loaded
2012 // will pass that module name to this function. Storing this
2013 // data to avoid loading the same module multiple times
2014 // centralize this in the callback
2015 self.inserted[mname] = true;
2016 // self.loaded[mname] = true;
2018 // provided = self.getProvides(mname);
2019 // Y.mix(self.loaded, provided);
2020 // Y.mix(self.inserted, provided);
2022 if (self.onProgress) {
2023 self.onProgress.call(self.context, {
2033 for (i = 0; i < len; i = i + 1) {
2034 // this.inserted keeps track of what the loader has loaded.
2035 // move on if this item is done.
2036 if (s[i] in self.inserted) {
2040 // Because rollups will cause multiple load notifications
2041 // from Y, loadNext may be called multiple times for
2042 // the same module when loading a rollup. We can safely
2043 // skip the subsequent requests
2044 if (s[i] === self._loading) {
2048 // log("inserting " + s[i]);
2049 m = self.getModule(s[i]);
2052 if (!self.skipped[s[i]]) {
2053 msg = 'Undefined module ' + s[i] + ' skipped';
2054 // self.inserted[s[i]] = true;
2055 self.skipped[s[i]] = true;
2061 group = (m.group && self.groups[m.group]) || NOT_FOUND;
2063 // The load type is stored to offer the possibility to load
2064 // the css separately from the script.
2065 if (!type || type === m.type) {
2066 self._loading = s[i];
2068 if (m.type === CSS) {
2070 attr = self.cssAttributes;
2073 attr = self.jsAttributes;
2076 url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
2077 self._url(m.path, s[i], group.base || m.base);
2081 onSuccess: handleSuccess,
2082 insertBefore: self.insertBefore,
2083 charset: self.charset,
2085 onFailure: self._onFailure,
2086 onTimeout: self._onTimeout,
2087 timeout: self.timeout,
2097 self._loading = null;
2099 fn = self._internalCallback;
2101 // internal callback for loading css first
2103 self._internalCallback = null;
2111 * Apply filter defined for this instance to a url/path
2113 * @param {string} u the string to filter.
2114 * @param {string} name the name of the module, if we are processing
2115 * a single module as opposed to a combined url.
2116 * @return {string} the filtered string.
2119 _filter: function(u, name) {
2120 var f = this.filter,
2121 hasFilter = name && (name in this.filters),
2122 modFilter = hasFilter && this.filters[name];
2126 f = (L.isString(modFilter)) ?
2127 this.FILTER_DEFS[modFilter.toUpperCase()] || null :
2131 u = u.replace(new RegExp(f.searchExp, 'g'), f.replaceStr);
2139 * Generates the full url for a module
2141 * @param {string} path the path fragment.
2142 * @return {string} the full url.
2145 _url: function(path, name, base) {
2146 return this._filter((base || this.base || '') + path, name);
2153 }, '3.3.0' ,{requires:['get']});
2155 YUI.add('loader-rollup', function(Y) {
2158 * Optional automatic rollup logic for reducing http connections
2159 * when not using a combo service.
2165 * Look for rollup packages to determine if all of the modules a
2166 * rollup supersedes are required. If so, include the rollup to
2167 * help reduce the total number of connections required. Called
2168 * by calculate(). This is an optional feature, and requires the
2169 * appropriate submodule to function.
2174 Y.Loader.prototype._rollup = function() {
2175 var i, j, m, s, r = this.required, roll,
2176 info = this.moduleInfo, rolled, c, smod;
2178 // find and cache rollup modules
2179 if (this.dirty || !this.rollups) {
2182 if (info.hasOwnProperty(i)) {
2183 m = this.getModule(i);
2184 // if (m && m.rollup && m.supersedes) {
2185 if (m && m.rollup) {
2186 this.rollups[i] = m;
2191 this.forceMap = (this.force) ? Y.Array.hash(this.force) : {};
2194 // make as many passes as needed to pick up rollup rollups
2198 // go through the rollup candidates
2199 for (i in this.rollups) {
2200 if (this.rollups.hasOwnProperty(i)) {
2201 // there can be only one, unless forced
2202 if (!r[i] && ((!this.loaded[i]) || this.forceMap[i])) {
2203 m = this.getModule(i);
2204 s = m.supersedes || [];
2207 // @TODO remove continue
2214 // check the threshold
2215 for (j = 0; j < s.length; j++) {
2218 // if the superseded module is loaded, we can't
2219 // load the rollup unless it has been forced.
2220 if (this.loaded[s[j]] && !this.forceMap[s[j]]) {
2223 // increment the counter if this module is required.
2224 // if we are beyond the rollup threshold, we will
2225 // use the rollup module
2226 } else if (r[s[j]] && m.type == smod.type) {
2228 roll = (c >= m.rollup);
2240 // expand the rollup's dependencies
2241 this.getRequires(m);
2247 // if we made it here w/o rolling up something, we are done
2256 }, '3.3.0' ,{requires:['loader-base']});
2258 YUI.add('loader-yui3', function(Y) {
2260 /* This file is auto-generated by src/loader/meta_join.py */
2263 * YUI 3 module metadata
2267 YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
2291 "anim-node-plugin": {
2327 "attribute-complex": {
2336 "autocomplete-base": {
2338 "autocomplete-sources"
2341 "autocomplete-filters": {
2342 "path": "autocomplete/autocomplete-filters-min.js",
2348 "autocomplete-filters-accentfold": {
2349 "path": "autocomplete/autocomplete-filters-accentfold-min.js",
2356 "autocomplete-highlighters": {
2357 "path": "autocomplete/autocomplete-highlighters-min.js",
2363 "autocomplete-highlighters-accentfold": {
2364 "path": "autocomplete/autocomplete-highlighters-accentfold-min.js",
2367 "highlight-accentfold"
2375 "event-valuechange",
2379 "autocomplete-list": {
2380 "after": "autocomplete-sources",
2385 "autocomplete-list-keys": {
2387 "test": function (Y) {
2388 // Only add keyboard support to autocomplete-list if this doesn't appear to
2389 // be an iOS or Android-based mobile device.
2391 // There's currently no feasible way to actually detect whether a device has
2392 // a hardware keyboard, so this sniff will have to do. It can easily be
2393 // overridden by manually loading the autocomplete-list-keys module.
2395 // Worth noting: even though iOS supports bluetooth keyboards, Mobile Safari
2396 // doesn't fire the keyboard events used by AutoCompleteList, so there's
2397 // no point loading the -keys module even when a bluetooth keyboard may be
2399 return !(Y.UA.ios || Y.UA.android);
2401 "trigger": "autocomplete-list"
2403 "path": "autocomplete/autocomplete-list-keys-min.js",
2405 "autocomplete-list",
2409 "autocomplete-plugin": {
2410 "path": "autocomplete/autocomplete-plugin-min.js",
2412 "autocomplete-list",
2418 "autocomplete-base",
2422 "widget-position-align",
2427 "autocomplete-sources": {
2455 "base-pluginhost": {
2495 "classnamemanager": {
2510 "arraylist-filter": {
2531 "console-filters": {
2560 "path": "cssbase/base-min.css",
2563 "cssbase-context": {
2572 "path": "cssbase/base-context-min.css",
2576 "path": "cssfonts/fonts-min.css",
2579 "cssfonts-context": {
2580 "path": "cssfonts/fonts-context-min.css",
2588 "path": "cssgrids/grids-min.css",
2591 "cssgrids-context-deprecated": {
2595 "path": "cssgrids-deprecated/grids-context-min.css",
2601 "cssgrids-deprecated": {
2605 "path": "cssgrids-deprecated/grids-min.css",
2612 "path": "cssreset/reset-min.css",
2615 "cssreset-context": {
2616 "path": "cssreset/reset-context-min.css",
2621 "dataschema-array": {
2626 "dataschema-base": {
2631 "dataschema-json": {
2637 "dataschema-text": {
2651 "datasource-arrayschema": {
2658 "datasource-cache": {
2664 "datasource-function": {
2681 "datasource-jsonschema": {
2688 "datasource-local": {
2693 "datasource-polling": {
2698 "datasource-textschema": {
2705 "datasource-xmlschema": {
2725 "datatable-datasource": {
2732 "datatable-scroll": {
2840 "datatype-date-format"
2843 "datatype-number": {
2855 "datatype-date-format": {
2856 "path": "datatype/datatype-date-format-min.js"
2867 "test": function(Y) {
2868 return (Y.config.win && ('ontouchstart' in Y.config.win && !Y.UA.chrome));
2870 "trigger": "dd-drag"
2965 "test": function (Y) {
2967 var testFeature = Y.Features.test,
2968 addFeature = Y.Features.add,
2969 WINDOW = Y.config.win,
2970 DOCUMENT = Y.config.doc,
2971 DOCUMENT_ELEMENT = 'documentElement',
2974 addFeature('style', 'computedStyle', {
2976 return WINDOW && 'getComputedStyle' in WINDOW;
2980 addFeature('style', 'opacity', {
2982 return DOCUMENT && 'opacity' in DOCUMENT[DOCUMENT_ELEMENT].style;
2986 ret = (!testFeature('style', 'opacity') &&
2987 !testFeature('style', 'computedStyle'));
2991 "trigger": "dom-style"
3033 "selector-native": {
3047 "createlink-base": {
3103 "after": "node-base",
3110 "test": function(Y) {
3111 var imp = Y.config.doc && Y.config.doc.implementation;
3112 return (imp && (!imp.hasFeature('Events', '2.0')));
3114 "trigger": "node-base"
3128 "after": "node-base",
3153 "event-mouseenter": {
3158 "event-mousewheel": {
3168 "event-synthetic": {
3171 "event-custom-complex"
3178 "event-custom-base": {
3183 "event-custom-complex": {
3213 "event-valuechange": {
3221 "highlight-accentfold": {
3238 "history-hash-ie": {
3240 "test": function (Y) {
3241 var docMode = Y.config.doc.documentMode;
3243 return Y.UA.ie && (!('onhashchange' in Y.config.win) ||
3244 !docMode || docMode < 8);
3246 "trigger": "history-hash"
3257 "history-deprecated"
3260 "event-custom-complex"
3285 "history-deprecated": {
3307 "querystring-stringify-simple"
3326 "io-upload-iframe": {
3394 "node-deprecated": {
3399 "node-event-simulate": {
3419 "transition-native",
3423 "transition-native": {
3437 "node-event-delegate": {
3443 "node-pluginhost": {
3472 "node-focusmanager": {
3477 "node-event-simulate",
3501 "widget-position-align",
3503 "widget-position-constrain"
3514 "pluginhost-base": {
3519 "pluginhost-config": {
3533 "querystring-parse": {
3539 "querystring-stringify": {
3546 "querystring-parse-simple": {
3547 "path": "querystring/querystring-parse-simple-min.js",
3552 "querystring-stringify-simple": {
3553 "path": "querystring/querystring-stringify-simple-min.js",
3564 "path": "async-queue/async-queue-min.js",
3577 "recordset-filter": {
3584 "recordset-indexer": {
3613 "resize-constrain": {
3629 "scrollview-base": {
3630 "path": "scrollview/scrollview-base-min.js",
3638 "scrollview-base-ie": {
3640 "trigger": "scrollview-base",
3647 "scrollview-paginator": {
3648 "path": "scrollview/scrollview-paginator-min.js",
3653 "scrollview-scrollbars": {
3654 "path": "scrollview/scrollview-scrollbars-min.js",
3663 "scrollview-scrollbars"
3676 "slider-value-range",
3688 "slider-value-range": {
3697 "sortable-scroll": {
3731 "node-event-delegate",
3763 "text-accentfold": {
3766 "text-data-accentfold"
3769 "text-data-accentfold": {},
3770 "text-data-wordbreak": {},
3774 "text-data-wordbreak"
3781 "transition-native": {
3786 "transition-timer": {
3788 "transition-native",
3806 "trigger": "widget-base",
3826 "widget-position": {
3833 "widget-position-align": {
3838 "widget-position-constrain": {
3870 "widget-htmlparser": {
3880 "widget-uievents": {
3883 "node-event-delegate"
3896 "path": "widget/widget-locale-min.js",
3949 YUI.Env[Y.version].md5 = 'faf08d27c01d7ab5575789a63b1e36fc';
3953 }, '3.3.0' ,{requires:['loader-base']});
3957 YUI.add('loader', function(Y){}, '3.3.0' ,{use:['loader-base', 'loader-rollup', 'loader-yui3' ]});