Hi,
I am having a problem with the following code:
In FormWindow I am trying to just add a couple listeners on top of the base class' listeners defined in the setupListeners method. I want something like this:
I am having a problem with the following code:
Code:
my.Window = Ext.define(null, {
'extend': 'Ext.window.Window',
'cls': 'bb-window',
'bodyCls': 'bb-window-body',
'border': false,
'initComponent': function () {
this.callParent(arguments);
this.setupListeners();
}
});
my.Window.prototype.setupListeners = function () {
// do stuff
};
my.FormWindow = Ext.define(null, {
'extend': my.Window,
'closeAction': 'destroy',
'modal': true,
'resizable': false,
'layout': 'anchor',
'initComponent': function () {
this.callParent(arguments);
}
}));
my.FormWindow.prototype.setupListeners = function() {
this.callParent(arguments);
// do something
};
In FormWindow I am trying to just add a couple listeners on top of the base class' listeners defined in the setupListeners method. I want something like this:
new my.FormWindow > my.FormWindow.initComponent > my.Window.initComponent > my.FormWindow.setupListeners > my.Window.setupListeners
But the last step is never called. Any thoughts?
Thanks!
Aucun commentaire:
Enregistrer un commentaire