I am trying to override Container component:
Code:
Ext.container.Container.override({
add : function () {
this.callOverridden(arguments);
console.log("container add");
}
everything seems to work fine, but when i try to create Ext.tab.Panel and add one Ext.panel.Panel like this:
Code:
var oTP = Ext.create("Ext.tab.Panel", {
width: 100,
height: 100,
renderTo: "myDiv"
});
oTP.add(Ext.create("Ext.panel.Panel", {title: "Panel 0"}));
it renders corectly but following error appears TypeError: Cannot read property 'disabled' of undefined.
I tried to debug it and function setActiveTab triggers an error in line: