Topic: Error in Adding Node to a nonexpanded item

Hi
There is an error when we add a node to a nonexpanded node (before first its expansion) .
Thanks

Thumbs up Thumbs down

Re: Error in Adding Node to a nonexpanded item

I am experiencing the same error.

Thumbs up Thumbs down

Re: Error in Adding Node to a nonexpanded item

Here is the way that I understand it.  Before a node is expanded it's children do not exist in the DOM.  When you try and inject a node the following code is called.
_____________________________________________________

updateDOM: function(node, domNode){
    domNode= domNode||node.getDOM('node');
    var previous=node.getPrevious();
    if(previous){
        domNode.injectAfter(previous.getDOM('node'));
    }else{
        if(node.tree.forest && node.parentNode.isRoot()){
            var children=node.tree.wrapper.getElement('.mif-tree-children-root');
        }else{
            var children=node.parentNode.getDOM('children');
        }
        domNode.injectTop(children);
    }
}
_____________________________________________________

It is trying to get the DOM element of a node that does not exist in the DOM yet. (variable previous).  I'm going to look into this more to make sure that I am not making a mistake in the way I set up my mif-tree.

Thumbs up Thumbs down

Re: Error in Adding Node to a nonexpanded item

fixed rev103