Issue 274: _loadKeyPath causes exception when this.childList is null
Status:  Duplicate
Merged:  issue 277
Owner: ----
Closed:  Jun 2012
Reported by giova...@glat.it, Jan 19, 2012
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
Jan 20, 2012
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: -Priority-Medium Priority-Low Milestone-Release1.2.1
Jun 8, 2012
Project Member #2 moo...@wwwendt.de
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
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Waiting
Jun 9, 2012
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 277