src/aria/templates/ModuleCtrl.js
function (evt, args) {
            var smList = this._smList;
            if (smList) {
                // smList can be null if the module is in the process of being disposed
                for (var i = 0, l = smList.length; i < l; i++) {
                    if (smList[i] == evt.src) {
                        ariaUtilsArray.removeAt(smList, i);
                        if (evt.reloadingObject) {
                            evt.reloadingObject.$onOnce({
                                "objectLoaded" : {
                                    scope : this,
                                    fn : this.__onSubModuleReloaded
                                }
                            });
                        }
                        break;
                    }
                }
            }
        }
function (evt, args) {
            var smList = this._smList;
            if (smList) {
                // smList can be null if the module is in the process of being disposed
                for (var i = 0, l = smList.length; i < l; i++) {
                    if (smList[i] == evt.src) {
                        ariaUtilsArray.removeAt(smList, i);
                        if (evt.reloadingObject) {
                            evt.reloadingObject.$onOnce({
                                "objectLoaded" : {
                                    scope : this,
                                    fn : this.__onSubModuleReloaded
                                }
                            });
                        }
                        break;
                    }
                }
            }
        }
function ( evt , args ) { var smList = this . _smList ; if ( smList ) { // smList can be null if the module is in the process of being disposed for ( var i = 0 , l = smList . length ; i < l ; i ++ ) { if ( smList [ i ] == evt . src ) { ariaUtilsArray . removeAt ( smList , i ) ; if ( evt . reloadingObject ) { evt . reloadingObject . $onOnce ( { "objectLoaded" : { scope : this , fn : this . __onSubModuleReloaded } } ) ; } break ; } } } }
Internal callback called anytime a "beforeDispose" sub-module event is triggered.
@param {Object} evt the event object
@param {Object} args some helpful info - e.g. args.smRef (sub-module reference)
@protected
Internal callback called anytime a beforeDispose sub - module event is triggered .