PDA

View Full Version : [FIXED-556] Bug in TreeNode.removeChild



cstansbury
10 Feb 2010, 11:36 AM
ExtJS 3.1.1

I'm getting an error when calling the TreeNode.removeChild function. When called w/ deep = true, it bombs at the bolded part because the node.ui is set to null in the call to the superclass.removeChild function...


removeChild : function(node, destroy){
this.ownerTree.getSelectionModel().unselect(node);
Ext.tree.TreeNode.superclass.removeChild.apply(this, arguments);
// if it's been rendered remove dom node
if(node.ui.rendered){
node.ui.remove();
}
}

cstansbury
10 Feb 2010, 11:44 AM
Sorry, when I stated "deep = true", I meant "destroy = true" - otherwise the bug can be reproduced as stated.

evant
22 Feb 2010, 11:51 PM
This has been corrected in SVN.

bauchinj
24 May 2012, 4:05 AM
I'd like to fix this bug, but don't know how to connect to svn. Maybe someone can help me to correct.