Closed GoogleCodeExporter closed 9 years ago
I possibly found the bug in the code. In the initialization section, we can see
the
following code:
// Init tree structure
if( opts.children ) {
// Read structure from node array
root.append(opts.children);
[...]
Which I interpret as "pass the list of children to the "Append" method.
However, when
each node is processed, code is as follows:
[...]
if( data.children )
for(var j=0; j<data.children.length; j++)
dtnode.append(data.children[j]);
[...]
Which I read as "passing each single child to the Append method". I believe this
approach is wrong (it should be recursive), so I changed the code as follows;
[...]
if( data.children )
dtnode.append(data.children);
[...]
Now everything seems to be working, but I'd like to wait for a confirmation
before
bringing the code to production. Thanks.
Original comment by business...@gmail.com
on 20 Oct 2008 at 12:01
Hi,
I fixed this lately (see issue #41, r60), it's in the trunk but not in a new
release
yet.
Thank you anyway.
Original comment by moo...@wwwendt.de
on 20 Oct 2008 at 6:44
Original comment by moo...@wwwendt.de
on 26 Jan 2013 at 4:08
Original issue reported on code.google.com by
business...@gmail.com
on 20 Oct 2008 at 11:04Attachments: