src/aria/templates/TemplateCtxt.js
function (evt) {
            var reloading = evt.reloadingObject;
            var tmpCfg = this._getReloadCfg();
            var isUsingModuleData = reloading && (this.moduleCtrl.getData() == tmpCfg.data);
            Aria.disposeTemplate(tmpCfg.div); // dispose the old template
            if (reloading) {
                var oSelf = this;
                reloading.$on({
                    scope : {},
                    "objectLoaded" : function (evt) {
                        tmpCfg.moduleCtrl = evt.object;
                        if (isUsingModuleData) {
                            tmpCfg.data = evt.object.getData();
                        }
                        oSelf._callLoadTemplate(tmpCfg);
                    }
                });
            }
        }
function (evt) {
            var reloading = evt.reloadingObject;
            var tmpCfg = this._getReloadCfg();
            var isUsingModuleData = reloading && (this.moduleCtrl.getData() == tmpCfg.data);
            Aria.disposeTemplate(tmpCfg.div); // dispose the old template
            if (reloading) {
                var oSelf = this;
                reloading.$on({
                    scope : {},
                    "objectLoaded" : function (evt) {
                        tmpCfg.moduleCtrl = evt.object;
                        if (isUsingModuleData) {
                            tmpCfg.data = evt.object.getData();
                        }
                        oSelf._callLoadTemplate(tmpCfg);
                    }
                });
            }
        }
function ( evt ) { var reloading = evt . reloadingObject ; var tmpCfg = this . _getReloadCfg ( ) ; var isUsingModuleData = reloading && ( this . moduleCtrl . getData ( ) == tmpCfg . data ) ; Aria . disposeTemplate ( tmpCfg . div ) ; // dispose the old template if ( reloading ) { var oSelf = this ; reloading . $on ( { scope : { } , "objectLoaded" : function ( evt ) { tmpCfg . moduleCtrl = evt . object ; if ( isUsingModuleData ) { tmpCfg . data = evt . object . getData ( ) ; } oSelf . _callLoadTemplate ( tmpCfg ) ; } } ) ; } }
Called when the module controller is about to be disposed.
@param {Object} event Module controller event.
@protected
Called when the module controller is about to be disposed .