Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    20
    Vote Rating
    0
    cstansbury is on a distinguished road

      0  

    Question [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

  2. #2
    Sencha User
    Join Date
    Jan 2010
    Posts
    20
    Vote Rating
    0
    cstansbury is on a distinguished road

      0  

    Default 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.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,953
    Vote Rating
    636
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This has been corrected in SVN.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Sencha User
    Join Date
    Aug 2009
    Posts
    122
    Vote Rating
    0
    bauchinj is on a distinguished road

      0  

    Default 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.

Thread Participants: 2