Issue 177: TypeError while adding a node to last node lazy loaded the empty array
Status:  Verified
Owner: ----
Closed:  Feb 2011
Reported by keitheis, Jan 25, 2011
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 :)

Jan 26, 2011
Project Member #1 moo...@wwwendt.de
thanks
Status: Accepted
Labels: Milestone-Release1.1.1
Feb 17, 2011
Project Member #2 moo...@wwwendt.de
This issue was closed by revision r469.
Status: Fixed
Jul 17, 2012
Project Member #3 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified