Sochettra / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

TypeError while adding a node to last node lazy loaded the empty array #177

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After we updated to 1.1.0, there happens a javascript error:

Reproduce the problem:
1. Lazy load an empty array at the last node.
2. Add node into that node by node.addChild(child_node)
3. TypeError: this.childList[this.childList.length - 1] is undefined - 
jquery.dynatree.js (line 1608)

How we fix it: around line 1473
+    if (this.childList.length > 0) {
         $(this.childList[this.childList.length-1].span).removeClass(opts.classNames.lastsib);
+    }

Hope it helps :)

Original issue reported on code.google.com by keitheis on 26 Jan 2011 at 7:35

GoogleCodeExporter commented 8 years ago
thanks

Original comment by moo...@wwwendt.de on 27 Jan 2011 at 6:23

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r469.

Original comment by moo...@wwwendt.de on 17 Feb 2011 at 8:11

GoogleCodeExporter commented 8 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19