src/aria/tools/inspector/InspectorModule.js
function (templateCtxt, tplSource) {

            ariaUtilsJson.setValue(this._data, "locked", true);

            if (tplSource) {
                tplSource = this._data.selectedTemplate.tplSrcEdit;
            }

            // do some cleaning
            this.clearHightlight();

            // do not close if target IS the contextual menu
            if (this._mainContextual && templateCtxt.tplClasspath != this._mainContextual.CONTEXTUAL_TEMPLATE_CLASSPATH) {
                this._mainContextual.close();
            }

            // replace in this scope Aria and aria
            var oSelf = this;
            var doIt = function () {
                // var Aria = oSelf.bridge.getAria(), aria = oSelf.bridge.getAriaPackage();

                // ... and call for reload
                templateCtxt.$reload(tplSource, {
                    fn : oSelf._unlock,
                    scope : oSelf
                });
            };
            doIt();

        }
function (templateCtxt, tplSource) {

            ariaUtilsJson.setValue(this._data, "locked", true);

            if (tplSource) {
                tplSource = this._data.selectedTemplate.tplSrcEdit;
            }

            // do some cleaning
            this.clearHightlight();

            // do not close if target IS the contextual menu
            if (this._mainContextual && templateCtxt.tplClasspath != this._mainContextual.CONTEXTUAL_TEMPLATE_CLASSPATH) {
                this._mainContextual.close();
            }

            // replace in this scope Aria and aria
            var oSelf = this;
            var doIt = function () {
                // var Aria = oSelf.bridge.getAria(), aria = oSelf.bridge.getAriaPackage();

                // ... and call for reload
                templateCtxt.$reload(tplSource, {
                    fn : oSelf._unlock,
                    scope : oSelf
                });
            };
            doIt();

        }
function ( templateCtxt , tplSource ) { ariaUtilsJson . setValue ( this . _data , "locked" , true ) ; if ( tplSource ) { tplSource = this . _data . selectedTemplate . tplSrcEdit ; } // do some cleaning this . clearHightlight ( ) ; // do not close if target IS the contextual menu if ( this . _mainContextual && templateCtxt . tplClasspath != this . _mainContextual . CONTEXTUAL_TEMPLATE_CLASSPATH ) { this . _mainContextual . close ( ) ; } // replace in this scope Aria and aria var oSelf = this ; var doIt = function ( ) { // var Aria = oSelf.bridge.getAria(), aria = oSelf.bridge.getAriaPackage(); // ... and call for reload templateCtxt . $reload ( tplSource , { fn : oSelf . _unlock , scope : oSelf } ) ; } ; doIt ( ) ; }
Reload a template for given template context
@param {aria.templates.TemplateCtxt} templateCtxt
@source {Boolean} tplSource optional template source provided ?
Reload a template for given template context