Bug #10084

Core.Application.js -> initializeModules->Change to event handling

Added by Sebastian Kurfuerst almost 5 years ago. Updated over 4 years ago.

Status:Resolved Start date:2010-10-06
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-

Description

The method in Core/Application.js has a todo comment -- we should use event handling, and get rid of "afterInitializationCallbacks".

/**
 * Invoke the registered modules.
 * @private
*/
_initializeModules: function() {
for (var moduleName in this.modules) {
if (this.modules[moduleName].initialize !== undefined) {
this.modules[moduleName].initialize(F3.TYPO3.Core.Application);
}
}
// TODO Change to event handling
Ext.each(this.afterInitializationCallbacks, function(c) {
if (this.modules[c.moduleName]) {
c.callback.call(c.scope, this.modules[c.moduleName]);
}
}, this);
this.afterInitializationCallbacks = [];
},

History

#1 Updated by Christian Müller over 4 years ago

  • Status changed from New to Resolved

Just stumbled over this, it is already done AFAIK.

Also available in: Atom PDF