PDA

View Full Version : [CLOSED][3.0.0] bug on Ext.Container.add()



carlopires
9 Jul 2009, 8:19 PM
This happens only in IE7.

I had to back to Ext2.2 logic on Ext.Container.add(). comp var is going undefined to lookupComponent(). This happens when I try to add components to Ext.Panel using dicts with xtype property.


add : function(comp){
this.initItems();
/*
var args = arguments.length > 1;
if(args || Ext.isArray(comp)){
Ext.each(args ? arguments : comp, function(c){
this.add(c);
}, this);
return;
}*/
var a = arguments, len = a.length;
if(len > 1){
for(var i = 0; i < len; i++) {
this.add(a[i]);
}
return;
}

var c = this.lookupComponent(this.applyDefaults(comp));
var pos = this.items.length;
if(this.fireEvent('beforeadd', this, c, pos) !== false && this.onBeforeAdd(c) !== false){
this.items.add(c);
c.ownerCt = this;
this.fireEvent('add', this, c, pos);
}
return c;
},

mjlecomte
9 Jul 2009, 8:29 PM
Thanks for the report. I didn't really understand the issue though.

Would you post a simple test case as suggested here:
http://extjs.com/forum/showthread.php?t=71015

Thank you.

mjlecomte
16 Aug 2009, 11:51 AM
This thread has remained in INFOREQ status for some time now and I don't see any test case posted as requested per http://extjs.com/forum/showthread.php?p=341947#post341947 or any new information posted.

I'm going to update the status to CLOSED in absence of new information / test case. Please post again to have the issue reopened.