| Issue 274: | _loadKeyPath causes exception when this.childList is null | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. create a tree with a node which is a leaf 2. try to activate it (and any parent) with _loadKeyPath What version of the dynatree and jQuery are you using? dynatree 1.2.1rc3 jquery 1.7.1 On what operating system and browser? win7 sp1 x64 + ie9 What DOCTYPE declaration are you using? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> Please provide any additional information below. It's solved by cheching for null childList. Simply add: if (this.childList) before for (var i = 0, l = this.childList.length; i < l; i++) { "this.childList.length" whill cause exception when childList is null. Thanks
Jun 8, 2012
Did you call node._loadKeyPath() directly? If so, that's the problem: try tree.loadKeyPath instead. tree.loadKeyPath() is meant to load a sequence of lazy nodes. If you just want to 'activate it (and any parent)' may be node.activate() and/or node.makeVisisble are better suited for your purpose?
Jun 8, 2012
(No comment was entered for this change.)
Status:
Waiting
Jun 9, 2012
(No comment was entered for this change.)
Status:
Duplicate
Mergedinto: 277 |
Labels: -Priority-Medium Priority-Low Milestone-Release1.2.1