src/aria/pageEngine/SiteRootModule.js
function (modRefpaths) {
            var refpath;
            for (var i = 0, len = modRefpaths.length; i < len; i++) {
                refpath = modRefpaths[i];
                this._disconnectModuleBindings(refpath);
                this.disposeSubModule(this._utils.resolvePath(refpath, this));
                if (this._serviceList[refpath]) {
                    for (var i = 0; i < this._serviceList[refpath].length; i++) {
                        delete this.services[this._serviceList[refpath][i]];
                    }
                    delete this._serviceList[refpath];
                }
            }
        }
function (modRefpaths) {
            var refpath;
            for (var i = 0, len = modRefpaths.length; i < len; i++) {
                refpath = modRefpaths[i];
                this._disconnectModuleBindings(refpath);
                this.disposeSubModule(this._utils.resolvePath(refpath, this));
                if (this._serviceList[refpath]) {
                    for (var i = 0; i < this._serviceList[refpath].length; i++) {
                        delete this.services[this._serviceList[refpath][i]];
                    }
                    delete this._serviceList[refpath];
                }
            }
        }
function ( modRefpaths ) { var refpath ; for ( var i = 0 , len = modRefpaths . length ; i < len ; i ++ ) { refpath = modRefpaths [ i ] ; this . _disconnectModuleBindings ( refpath ) ; this . disposeSubModule ( this . _utils . resolvePath ( refpath , this ) ) ; if ( this . _serviceList [ refpath ] ) { for ( var i = 0 ; i < this . _serviceList [ refpath ] . length ; i ++ ) { delete this . services [ this . _serviceList [ refpath ] [ i ] ] ; } delete this . _serviceList [ refpath ] ; } } }
Unload modules whose refpath in is modRefpaths and disconnects the related bindings
@param {Array} modRefpaths refpaths of the modules to unload
Unload modules whose refpath in is modRefpaths and disconnects the related bindings