| Issue 41: | Level three and deeper not created when using object for structure | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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 16, 2008
(No comment was entered for this change.)
Status:
Accepted
Owner: moo...@wwWendt.de Labels: Milestone-Release0.3
Jul 17, 2012
considered verified
Status:
Verified
|
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);