Ext.application.prototype.addController = function (name) {
var me = this;
var controller =
AM.getApplication().getController(name);
if (!controller)
{
controller = Ext.create(this.getModuleClassName(name,
‘controller‘), {
application: me,
id: name
});
this.controllers.add(controller);
if (me._initialized)
{
controller.doInit(me);
}
}
};
时间: 2024-11-07 16:22:52