PDA

View Full Version : [FIXED-EXTJSIV-1795]remove Action BUG



wenner
28 Apr 2011, 7:22 PM
code


Ext.onReady(function() {
var p = Ext.create("Ext.panel.Panel" , {
title:"test" ,
renderTo: Ext.getBody() ,
items:[
Ext.create("Ext.panel.Panel" , {title:"item1" , itemId:"bb" , tbar:[
Ext.create('Ext.Action', {
scope: this,
text: 'add' ,
iconCls: 'icon_add'
})
]})
]
})
p.remove(p.getComponent("bb"))
})

when i remove a panel where has a Action in this panel
Uncaught TypeError: Object [object Object] has no method 'remove'

evant
28 Apr 2011, 8:55 PM
Thanks for the report, this should be resolved in the next release.

hallikpapa
27 May 2011, 9:12 PM
This was an issue for me too. I didn't see it mentioned in the 4.0.1 release notes posted a couple weeks after your fix. I am guessing it's coming in the next one? :)

<edit> It appears you did add the remove() method, but it wasn't noted in the release notes or api docs. Thanks for the bug fix though!