1. #1
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    747
    Vote Rating
    72
    Answers
    38
    Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice

      0  

    Default Unanswered: Ext.data.TreeStore - onNodeRemove

    Hello,

    can anybody explain me what does happend with node after you remove it?

    Code:
    Ext.override(Ext.data.TreeStore, {
        onNodeRemove: function(parent, node, isMove) {
            var me = this,
                removed = me.removed;
    
            if (!node.isReplace && Ext.Array.indexOf(removed, node) == -1) {
    
                removed.push(node);
    
                console.log(node.parentNode)
                console.log(node.nextSibling)
                console.log(node.previousSibling)
            }
    
            if (me.autoSync && !me.autoSyncSuspended && !isMove) {
                me.sync();
            }
        }
    });;
    When i log these informations i see everything, but when i want log node, parentNode and Siblings are null.

  2. #2
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    747
    Vote Rating
    72
    Answers
    38
    Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice

      0  

    Default

    I found answer for my question: http://www.sencha.com/forum/showthre...data.TreeStore but:

    Why you need remove all references from node?