src/aria/templates/ModuleCtrlFactory.js
function (moduleCtrlPrivate, subModulesArray, cb) {
                var res = getModulePrivateInfoWithCheck(moduleCtrlPrivate, "loadSubModules");
                if (!res) {
                    return this.$callback(cb, {
                        error : true
                    });
                }
                loadSubModules.call(this, res, subModulesArray, cb, false /* these are not custom modules */);
            }
function (moduleCtrlPrivate, subModulesArray, cb) {
                var res = getModulePrivateInfoWithCheck(moduleCtrlPrivate, "loadSubModules");
                if (!res) {
                    return this.$callback(cb, {
                        error : true
                    });
                }
                loadSubModules.call(this, res, subModulesArray, cb, false /* these are not custom modules */);
            }
function ( moduleCtrlPrivate , subModulesArray , cb ) { var res = getModulePrivateInfoWithCheck ( moduleCtrlPrivate , "loadSubModules" ) ; if ( ! res ) { return this . $callback ( cb , { error : true } ) ; } loadSubModules . call ( this , res , subModulesArray , cb , false /* these are not custom modules */ ) ; }
This method should only be called from aria.templates.ModuleCtrl to load sub-modules.
@param {aria.templates.ModuleCtrl} moduleCtrlPrivate module controller instance to which child modules
should be attached
@param {Array} array of type aria.templates.CfgBeans.SubModuleDefinition, giving information about which
modules are to be loaded and how.
@param {aria.core.CfgBeans:Callback} cb callback to be called when the load is complete (may have failed,
though)
@private
This method should only be called from aria . templates . ModuleCtrl to load sub - modules .