text: Ext.data.JsonP.KISSY_Loader_Utils({"tagname":"class","name":"KISSY.Loader.Utils","autodetected":{},"files":[{"filename":"utils.js","href":"utils10.html#KISSY-Loader-Utils"}],"singleton":true,"private":true,"members":[{"name":"attachMod","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-attachMod","meta":{}},{"name":"attachModRecursively","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-attachModRecursively","meta":{}},{"name":"attachModsRecursively","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-attachModsRecursively","meta":{}},{"name":"createModuleInfo","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-createModuleInfo","meta":{}},{"name":"createModulesInfo","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-createModulesInfo","meta":{}},{"name":"docHead","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-docHead","meta":{}},{"name":"getMappedPath","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-getMappedPath","meta":{}},{"name":"getModNamesAsArray","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-getModNamesAsArray","meta":{}},{"name":"getModules","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-getModules","meta":{}},{"name":"isAttached","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-isAttached","meta":{}},{"name":"normalDepModuleName","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-normalDepModuleName","meta":{}},{"name":"normalizeModNames","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-normalizeModNames","meta":{}},{"name":"normalizeModNamesWithAlias","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-normalizeModNamesWithAlias","meta":{}},{"name":"registerModule","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-registerModule","meta":{}},{"name":"unalias","tagname":"method","owner":"KISSY.Loader.Utils","id":"method-unalias","meta":{}}],"alternateClassNames":[],"aliases":{},"id":"class-KISSY.Loader.Utils","component":false,"superclasses":[],"subclasses":[],"mixedInto":[],"mixins":[],"parentMixins":[],"requires":[],"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/utils10.html#KISSY-Loader-Utils' target='_blank'>utils.js</a></div></pre><div class='doc-contents'><div class='rounded-box private-box'><p><strong>NOTE:</strong> This is a private utility class for internal use by the framework. Don't rely on its existence.</p></div><p>Utils for KISSY Loader</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-attachMod' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-attachMod' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-attachMod' class='name expandable'>attachMod</a>( <span class='pre'>runtime, mod</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>Attach specified mod. ...</div><div class='long'><p>Attach specified mod.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>mod</span> : <a href=\"#!/api/KISSY.Loader.Module\" rel=\"KISSY.Loader.Module\" class=\"docClass\">KISSY.Loader.Module</a><div class='sub-desc'><p>module instance</p>\n</div></li></ul></div></div></div><div id='method-attachModRecursively' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-attachModRecursively' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-attachModRecursively' class='name expandable'>attachModRecursively</a>( <span class='pre'>modName, runtime, [stack], [errorList], [cache]</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><span class=\"signature\"></span></div><div class='description'><div class='short'>attach module and its dependency modules recursively ...</div><div class='long'><p>attach module and its dependency modules recursively</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>modName</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>module name</p>\n</div></li><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>stack</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[] (optional)<div class='sub-desc'><p>stack for detecting circular dependency</p>\n</div></li><li><span class='pre'>errorList</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> (optional)<div class='sub-desc'><p>errors when attach mods</p>\n</div></li><li><span class='pre'>cache</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>cached modules to avoid duplicate check</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'><p>whether success attach all modules</p>\n</div></li></ul></div></div></div><div id='method-attachModsRecursively' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-attachModsRecursively' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-attachModsRecursively' class='name expandable'>attachModsRecursively</a>( <span class='pre'>modNames, runtime, [stack], [errorList], [cache]</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><span class=\"signature\"></span></div><div class='description'><div class='short'>attach modules and their dependency modules recursively ...</div><div class='long'><p>attach modules and their dependency modules recursively</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>modNames</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>module names</p>\n</div></li><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>stack</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[] (optional)<div class='sub-desc'><p>stack for detecting circular dependency</p>\n</div></li><li><span class='pre'>errorList</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> (optional)<div class='sub-desc'><p>errors when attach mods</p>\n</div></li><li><span class='pre'>cache</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>cached modules to avoid duplicate check</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'><p>whether success attach all modules</p>\n</div></li></ul></div></div></div><div id='method-createModuleInfo' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-createModuleInfo' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-createModuleInfo' class='name expandable'>createModuleInfo</a>( <span class='pre'>runtime, modName, [cfg]</span> ) : <a href=\"#!/api/KISSY.Loader.Module\" rel=\"KISSY.Loader.Module\" class=\"docClass\">KISSY.Loader.Module</a><span class=\"signature\"></span></div><div class='description'><div class='short'>create single module info ...</div><div class='long'><p>create single module info</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>modName</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>to be created module name</p>\n</div></li><li><span class='pre'>cfg</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>module config</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/KISSY.Loader.Module\" rel=\"KISSY.Loader.Module\" class=\"docClass\">KISSY.Loader.Module</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-createModulesInfo' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-createModulesInfo' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-createModulesInfo' class='name expandable'>createModulesInfo</a>( <span class='pre'>runtime, modNames</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>create modules info ...</div><div class='long'><p>create modules info</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>modNames</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>to be created module names</p>\n</div></li></ul></div></div></div><div id='method-docHead' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-docHead' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-docHead' class='name expandable'>docHead</a>( <span class='pre'></span> ) : HTMLElement<span class=\"signature\"></span></div><div class='description'><div class='short'>get document head ...</div><div class='long'><p>get document head</p>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement</span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-getMappedPath' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-getMappedPath' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-getMappedPath' class='name expandable'>getMappedPath</a>( <span class='pre'>runtime, path, [rules]</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><span class=\"signature\"></span></div><div class='description'><div class='short'>Get mapped path. ...</div><div class='long'><p>Get mapped path.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>path</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>module path</p>\n</div></li><li><span class='pre'>rules</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>map rules</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span><div class='sub-desc'><p>mapped path</p>\n</div></li></ul></div></div></div><div id='method-getModNamesAsArray' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-getModNamesAsArray' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-getModNamesAsArray' class='name expandable'>getModNamesAsArray</a>( <span class='pre'>modNames</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<span class=\"signature\"></span></div><div class='description'><div class='short'>Get mod names as array. ...</div><div class='long'><p>Get mod names as array.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>modNames</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>|<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>module names array or  module names string separated by ','</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]</span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-getModules' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-getModules' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-getModules' class='name expandable'>getModules</a>( <span class='pre'>runtime, modNames</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><span class=\"signature\"></span></div><div class='description'><div class='short'>Get module values ...</div><div class='long'><p>Get module values</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>modNames</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>module names</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'><p>module values</p>\n</div></li></ul></div></div></div><div id='method-isAttached' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-isAttached' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-isAttached' class='name expandable'>isAttached</a>( <span class='pre'>runtime, modNames</span> ) : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a><span class=\"signature\"></span></div><div class='description'><div class='short'>Whether modNames is attached. ...</div><div class='long'><p>Whether modNames is attached.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>modNames</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-normalDepModuleName' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-normalDepModuleName' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-normalDepModuleName' class='name expandable'>normalDepModuleName</a>( <span class='pre'>moduleName, depName</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>|<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<span class=\"signature\"></span></div><div class='description'><div class='short'>Get absolute path of dep module.similar to KISSY.Path.resolve ...</div><div class='long'><p>Get absolute path of dep module.similar to <a href=\"#!/api/KISSY.Path-method-resolve\" rel=\"KISSY.Path-method-resolve\" class=\"docClass\">KISSY.Path.resolve</a></p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>moduleName</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>current module 's name</p>\n</div></li><li><span class='pre'>depName</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>|<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>dependency module 's name</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>|<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]</span><div class='sub-desc'><p>normalized dependency module 's name</p>\n</div></li></ul></div></div></div><div id='method-normalizeModNames' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-normalizeModNames' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-normalizeModNames' class='name expandable'>normalizeModNames</a>( <span class='pre'>runtime, modNames, [refModName]</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<span class=\"signature\"></span></div><div class='description'><div class='short'>normalize module names\n1. ...</div><div class='long'><p>normalize module names\n1. add index : / => /index\n2. unalias : core => dom,event,ua\n3. relative to absolute : ./x => y/x</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/KISSY\" rel=\"KISSY\" class=\"docClass\">KISSY</a><div class='sub-desc'><p>Global KISSY instance</p>\n</div></li><li><span class='pre'>modNames</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>|<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>Array of module names\n or module names string separated by comma</p>\n</div></li><li><span class='pre'>refModName</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]</span><div class='sub-desc'><p>normalized module names</p>\n</div></li></ul></div></div></div><div id='method-normalizeModNamesWithAlias' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-normalizeModNamesWithAlias' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-normalizeModNamesWithAlias' class='name expandable'>normalizeModNamesWithAlias</a>( <span class='pre'>runtime, modNames, [refModName]</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<span class=\"signature\"></span></div><div class='description'><div class='short'>normalize module names with alias ...</div><div class='long'><p>normalize module names with alias</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>modNames</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>module names</p>\n</div></li><li><span class='pre'>refModName</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>module to be referred if module name path is relative</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]</span><div class='sub-desc'><p>normalize module names with alias</p>\n</div></li></ul></div></div></div><div id='method-registerModule' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-registerModule' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-registerModule' class='name expandable'>registerModule</a>( <span class='pre'>runtime, name, fn, [config]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>register module with factory ...</div><div class='long'><p>register module with factory</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>name</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>module name</p>\n</div></li><li><span class='pre'>fn</span> : <a href=\"#!/api/Function\" rel=\"Function\" class=\"docClass\">Function</a>|*<div class='sub-desc'><p>module's factory or value</p>\n</div></li><li><span class='pre'>config</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>module config, such as dependency</p>\n</div></li></ul></div></div></div><div id='method-unalias' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='KISSY.Loader.Utils'>KISSY.Loader.Utils</span><br/><a href='source/utils10.html#KISSY-Loader-Utils-method-unalias' target='_blank' class='view-source'>view source</a></div><a href='#!/api/KISSY.Loader.Utils-method-unalias' class='name expandable'>unalias</a>( <span class='pre'>runtime, names</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<span class=\"signature\"></span></div><div class='description'><div class='short'>unalias module name. ...</div><div class='long'><p>unalias module name.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>runtime</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>Module container, such as KISSY</p>\n</div></li><li><span class='pre'>names</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>moduleNames</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]</span><div class='sub-desc'><p>unaliased module names</p>\n</div></li></ul></div></div></div></div></div></div></div>","meta":{"private":true}});