| Issue 177: | TypeError while adding a node to last node lazy loaded the empty array | |
| 2 people starred this issue and may be notified of changes. | Back to list |
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 :)
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
|
Labels: Milestone-Release1.1.1