Lines Matching defs:name

342      * If a module name is predefined when requested, it is checked againsts
556 if (this.isCSSLoaded(v.name)) {
557 Y.log('Found CSS module on page: ' + v.name, 'info', 'loader');
570 // console.log('deleting ' + m.name);
722 * Returns the skin module name for the specified skin name. If a
723 * module name is supplied, the returned skin module name is
726 * @param {string} skin the name of the skin.
727 * @param {string} mod optional: the name of a module to skin.
728 * @return {string} the full skin module name.
742 * @param {string} skin the name of the skin.
743 * @param {string} mod the name of the module.
746 * @return {string} the module name for the skin.
750 var mdef, pkg, name, nmod,
757 name = this.formatSkin(skin, mod);
758 if (!info[name]) {
762 name: name,
776 this.addModule(nmod, name);
778 Y.log('Adding skin (' + name + '), ' + parent + ', ' + pkg + ', ' + info[name].path, 'info', 'loader');
782 return name;
788 * @param {String} name The name of the alias
797 addAlias: function(use, name) {
798 YUI.Env.aliases[name] = use;
800 name: name,
808 * @param {String} config.name required, the group name
814 * @param {String} name the group name.
818 * name: 'davglass',
827 addGroup: function(o, name) {
830 name = name || o.name;
831 o.name = name;
832 self.groups[name] = o;
836 v.group = name;
844 v = { name: k, fullpath: v };
846 v.group = name;
856 * @param {String} config.name Required, the component name
871 * @param {String} [config.condition.trigger] The name of a module that can trigger the auto-load
879 * @param {String} [name] The module name, required if not in the module data.
882 addModule: function(o, name) {
883 name = name || o.name;
886 o = { name: name, fullpath: o };
893 if (this.moduleInfo[name] && this.moduleInfo[name].temp) {
899 o = Y.merge(this.moduleInfo[name], o);
902 o.name = name;
904 if (!o || !o.name) {
919 o.path = _path(name, name, o.type);
930 // , existing = this.moduleInfo[name], newr;
932 this.moduleInfo[name] = o;
937 skinname = this._addSkin(this.skin.defaultSkin, name);
947 packName = this.getLangPackName(lang, name);
964 s.path = s.path || _path(name, i, o.type);
965 s.pkg = name;
981 i, name);
986 i, name);
998 packName = this.getLangPackName(lang, name);
1024 packName = this.getLangPackName(ROOT_LANG, name);
1058 plug.pkg = name;
1059 plug.path = plug.path || _path(name, i, o.type);
1064 this._addSkin(this.skin.defaultSkin, i, name);
1084 conditions[trigger][name] = o.condition;
1117 Y.log('Config function returned false for ' + name + ', skipping.', 'info', 'loader');
1118 delete this.moduleInfo[name];
1119 delete GLOBAL_ENV._renderedMods[name];
1128 GLOBAL_ENV._renderedMods[name] = Y.merge(o);
1160 oeach(r, function(v, name) {
1161 m = self.getModule(name);
1163 //delete r[name];
1225 //console.log('returning no reqs for ' + mod.name);
1230 //console.log('returning requires for ' + mod.name, mod.requires);
1237 name = mod.name, cond,
1238 adddef = ON_PAGE[name] && ON_PAGE[name].details,
1247 // console.log(name);
1252 mod = this.addModule(adddef, name);
1262 //Y.log('Already expanded ' + name + ', ' + mod.expanded);
1278 // Y.log("getRequires: " + name + " (dirty:" + this.dirty +
1285 //Y.log(name + ' requiring ' + r[i], 'info', 'loader');
1347 cond = this.conditions[name];
1354 var condmod = ftests[id].name;
1355 if (!hash[condmod] && ftests[id].trigger == name) {
1392 if (Y.Array.indexOf(o, name) > -1) {
1396 if (skindef && (skindef[name] || (skinpar && skindef[skinpar]))) {
1397 skinname = name;
1402 skinmod = this._addSkin(skindef[skinname][i], name);
1408 skinmod = this._addSkin(this.skin.defaultSkin, name);
1422 packName = this.getLangPackName(lang, name);
1439 * @param {String} name The name of the css file
1442 isCSSLoaded: function(name, skip) {
1443 //TODO - Make this call a batching call with name being an array
1444 if (!name || !YUI.Env.cssStampEl || (!skip && this.ignoreRegistered)) {
1445 Y.log('isCSSLoaded was skipped for ' + name, 'warn', 'loader');
1454 el.className = name;
1464 Y.log('Has Skin? ' + name + ' : ' + ret, 'info', 'loader');
1473 * @param {string} name The name of the module.
1476 getProvides: function(name) {
1477 var m = this.getModule(name), o, s;
1494 o[name] = true;
1537 * @param {String} packName The name of the package (e.g: lang/datatype-date-en-US)
1541 var name = m.name,
1547 packPath = _path((m.pkg || name), packName, JS, true);
1567 Y.Env.lang[lang][name] = true;
1582 var info = this.moduleInfo, name, i, j, m, l,
1585 for (name in info) {
1586 if (info.hasOwnProperty(name)) {
1587 m = info[name];
1598 packName = this.getLangPackName(ROOT_LANG, name);
1642 * Builds a module name for a language pack
1646 * @return {string} the language pack module name.
1669 oeach(r, function(v, name) {
1670 if (!done[name]) {
1671 done[name] = true;
1672 m = self.getModule(name);
1693 * @param {String} mname The module name to get
1697 //TODO: Remove name check - it's a quick hack to fix pattern WIP
1716 // the pattern against the mod name
1863 name: e.url,
2043 self.inserted[d.data[i].name] = true;
2168 * @param {string} mname optional the name of the module that has
2181 * @param {string} name the name of the module, if we are processing
2186 _filter: function(u, name, group) {
2188 hasFilter = name && (name in this.filters),
2189 modFilter = hasFilter && this.filters[name],
2190 groupName = group || (this.moduleInfo[name] ? this.moduleInfo[name].group : null);
2215 * @param {String} name The name of the module
2220 _url: function(path, name, base) {
2221 return this._filter((base || this.base || '') + path, name);
2352 frag = self._filter(frag, m.name);
2358 //singles.push(mods[i].name);