-
10 Feb 2010 11:36 AM #1
[FIXED-556] Bug in TreeNode.removeChild
[FIXED-556] Bug in TreeNode.removeChild
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...
Code: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(); } }Last edited by mystix; 10 Feb 2010 at 11:38 AM. Reason: POST CODE IN [code][/code] TAGS. see http://extjs.com/forum/misc.php?do=bbcode#code
-
10 Feb 2010 11:44 AM #2
Typo in previous - s/deep/destroy
Typo in previous - s/deep/destroy
Sorry, when I stated "deep = true", I meant "destroy = true" - otherwise the bug can be reproduced as stated.
-
22 Feb 2010 11:51 PM #3
This has been corrected in SVN.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
24 May 2012 4:05 AM #4
How do I connect do SVN?
How do I connect do SVN?
I'd like to fix this bug, but don't know how to connect to svn. Maybe someone can help me to correct.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote