Issue 41: Level three and deeper not created when using object for structure
Status:  Verified
Owner:
Closed:  Oct 2008
Reported by andreasblixt, Oct 15, 2008
If I initialize a tree using the following:
$('#tree').dynatree({children:[{title:'Level one',children:[{title:'Level
two',children:[{title:'Level three',children:[{title:'Level four'}]}]}]}]});

I only see the 'Level one' and 'Level two' nodes. The two other nodes are
never added.

Nodes that are either top-level nodes or child nodes to the top-level nodes
appear, but any nodes that are deeper in the tree seem to be lost.
Oct 15, 2008
#1 andreasblixt
The following fix seems to work:

In DynaTreeNode.prototype.append, change:
for(var j=0; j<data.children.length; j++)
    dtnode.append(data.children[j]);
to:
dtnode.append(data.children);

Oct 16, 2008
Project Member #2 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Owner: moo...@wwWendt.de
Labels: Milestone-Release0.3
Oct 19, 2008
Project Member #3 moo...@wwwendt.de
Fixed with r60 (thanks to Andreas Blixt)
Status: Fixed
Jul 17, 2012
Project Member #4 moo...@wwwendt.de
considered verified
Status: Verified