Hello there,
When overriding a constructor in ExtJS 4.1, the overridden constructor gets called when this.callParent() (instead of on this.callOverriden()) is used on the new function.
Code:
Ext.override(Ext.data.Store, {
constructor: function () {
......
this.callParent(); // this calls the overridden Ext.data.Store constructor instead of the Ext.data.AbstractStore constructor
....
}
});
Is this an intentional behavior change or an unnoticed bug?
The problem with this behavior is that if I try to override a constructor to provide custom functionality or fix a bug, the overridden constructor with the undesired code is getting called too, thus giving unexpected results...
Let me know if you need more info