src/aria/widgets/Template.js
function () {
            var tplcfg = this._tplcfg;
            var cfg = this._cfg;
            if (this._needCreatingModuleCtrl) {
                if (!ariaCoreJsonValidator.normalize({
                    json : cfg.moduleCtrl,
                    beanName : "aria.templates.CfgBeans.InitModuleCtrl"
                })) {
                    this._cfgOk = false;
                    return;
                }
            } else {
                /* TODO: check that cfg.moduleCtrl is a module controller if it is not null */
                tplcfg.moduleCtrl = cfg.moduleCtrl;
            }
            if (cfg.width > -1) {
                tplcfg.width = cfg.width;
            }
            if (cfg.height > -1) {
                tplcfg.height = cfg.height;
            }
            tplcfg.printOptions = cfg.printOptions;
            tplcfg.baseTabIndex = cfg.baseTabIndex;
        }
function () {
            var tplcfg = this._tplcfg;
            var cfg = this._cfg;
            if (this._needCreatingModuleCtrl) {
                if (!ariaCoreJsonValidator.normalize({
                    json : cfg.moduleCtrl,
                    beanName : "aria.templates.CfgBeans.InitModuleCtrl"
                })) {
                    this._cfgOk = false;
                    return;
                }
            } else {
                /* TODO: check that cfg.moduleCtrl is a module controller if it is not null */
                tplcfg.moduleCtrl = cfg.moduleCtrl;
            }
            if (cfg.width > -1) {
                tplcfg.width = cfg.width;
            }
            if (cfg.height > -1) {
                tplcfg.height = cfg.height;
            }
            tplcfg.printOptions = cfg.printOptions;
            tplcfg.baseTabIndex = cfg.baseTabIndex;
        }
function ( ) { var tplcfg = this . _tplcfg ; var cfg = this . _cfg ; if ( this . _needCreatingModuleCtrl ) { if ( ! ariaCoreJsonValidator . normalize ( { json : cfg . moduleCtrl , beanName : "aria.templates.CfgBeans.InitModuleCtrl" } ) ) { this . _cfgOk = false ; return ; } } else { /* TODO: check that cfg.moduleCtrl is a module controller if it is not null */ tplcfg . moduleCtrl = cfg . moduleCtrl ; } if ( cfg . width > - 1 ) { tplcfg . width = cfg . width ; } if ( cfg . height > - 1 ) { tplcfg . height = cfg . height ; } tplcfg . printOptions = cfg . printOptions ; tplcfg . baseTabIndex = cfg . baseTabIndex ; }
Verify that the configuration is valid. This will set this._cfgOk to either true or false
@protected
Verify that the configuration is valid . This will set this . _cfgOk to either true or false