src/aria/tools/ToolsModule.js
function (args, cb) {

            this.bridge = args.bridge;

            // add bridge to submodules init parameters
            for (var i = 0, l = this.subModulesList.length; i < l; i++) {
                if (!this.subModulesList[i].initArgs) {
                    this.subModulesList[i].initArgs = {};
                    this.subModulesList[i].initArgs.bridge = this.bridge;
                }
            }

            // load subnodules
            this.loadSubModules(this.subModulesList, {
                fn : this.onSubModulesReady,
                scope : this
            });
            this.$ModuleCtrl.init.call(this, args, cb);
        }
function (args, cb) {

            this.bridge = args.bridge;

            // add bridge to submodules init parameters
            for (var i = 0, l = this.subModulesList.length; i < l; i++) {
                if (!this.subModulesList[i].initArgs) {
                    this.subModulesList[i].initArgs = {};
                    this.subModulesList[i].initArgs.bridge = this.bridge;
                }
            }

            // load subnodules
            this.loadSubModules(this.subModulesList, {
                fn : this.onSubModulesReady,
                scope : this
            });
            this.$ModuleCtrl.init.call(this, args, cb);
        }
function ( args , cb ) { this . bridge = args . bridge ; // add bridge to submodules init parameters for ( var i = 0 , l = this . subModulesList . length ; i < l ; i ++ ) { if ( ! this . subModulesList [ i ] . initArgs ) { this . subModulesList [ i ] . initArgs = { } ; this . subModulesList [ i ] . initArgs . bridge = this . bridge ; } } // load subnodules this . loadSubModules ( this . subModulesList , { fn : this . onSubModulesReady , scope : this } ) ; this . $ModuleCtrl . init . call ( this , args , cb ) ; }
Module initialization method
@param {Object} initArgs init argument expected to contain a single property "bridge" giving a reference to
the main window Bridge object.
@param {aria.core.CfgBeans:Callback} cb callback called when the initialization is finished
Module initialization method