src/aria/core/TplClassLoader.js
function (cfg, cb) {
                var appE = Aria.getClassRef("aria.core.environment.Customizations");
                if (appE && appE.isCustomized() && !appE.descriptorLoaded()) {
                    // the application is customized but the descriptor hasn't been loaded yet: register to the event
                    appE.$onOnce({
                        'descriptorLoaded' : {
                            fn : this._startLoad,
                            scope : this,
                            args : {
                                cfg : cfg,
                                cb : cb
                            }
                        }
                    });
                } else {
                    // no descriptor was specified, or it has already been loaded: go ahead
                    this._startLoad(null, {
                        cfg : cfg,
                        cb : cb
                    });
                }
            }
function (cfg, cb) {
                var appE = Aria.getClassRef("aria.core.environment.Customizations");
                if (appE && appE.isCustomized() && !appE.descriptorLoaded()) {
                    // the application is customized but the descriptor hasn't been loaded yet: register to the event
                    appE.$onOnce({
                        'descriptorLoaded' : {
                            fn : this._startLoad,
                            scope : this,
                            args : {
                                cfg : cfg,
                                cb : cb
                            }
                        }
                    });
                } else {
                    // no descriptor was specified, or it has already been loaded: go ahead
                    this._startLoad(null, {
                        cfg : cfg,
                        cb : cb
                    });
                }
            }
function ( cfg , cb ) { var appE = Aria . getClassRef ( "aria.core.environment.Customizations" ) ; if ( appE && appE . isCustomized ( ) && ! appE . descriptorLoaded ( ) ) { // the application is customized but the descriptor hasn't been loaded yet: register to the event appE . $onOnce ( { 'descriptorLoaded' : { fn : this . _startLoad , scope : this , args : { cfg : cfg , cb : cb } } } ) ; } else { // no descriptor was specified, or it has already been loaded: go ahead this . _startLoad ( null , { cfg : cfg , cb : cb } ) ; } }
Load a template in a div. You should call Aria.loadTemplate, instead of this method.
@param {aria.templates.CfgBeans:LoadTemplateCfg} cfg configuration object
@param {aria.core.CfgBeans:Callback} callback which will be called when the template is loaded or if
there is an error. The first parameter of the callback is a JSON object with the following properties: {
success : {Boolean} true if the template was displayed, false otherwise } Note that the callback is
called when the template is loaded, but sub-templates may still be waiting to be loaded (showing a
loading indicator). Note that success==true means that the template was displayed, but there may be
errors inside some widgets or sub-templates.
Load a template in a div . You should call Aria . loadTemplate instead of this method .