| Issue 48: | rootVisible false, keyboard: true causes error on init | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. try to initialize a dynatree with rootVisible:false and keyboard:true
see code below
What is the expected output? What do you see instead?
error: root.aChilds is null
What version of the product are you using?
jquery.dynatree.js 0.3, beta build 2008-09-14
On what operating system and browser?
MacOsX FF 3
Please provide any additional information below.
Here is the code to replicate the problem:
$("#tree").dynatree({
title: "Dynatree root",
rootVisible: false,
keyboard:true,
});
The error occurs on this line:
} else if( root.aChilds.length > 0 && ! (opts.initAjax &&
opts.initAjax.url) ) {
The following change fixed the issue for me
} else if( root.aChilds && root.aChilds.length > 0 && ! (opts.initAjax &&
opts.initAjax.url) ) {
Oct 31, 2008
#1
thomas.d...@gmail.com
Nov 1, 2008
reproduced
Status:
Accepted
Owner: moo...@wwWendt.de Labels: Milestone-Release0.3
Jul 17, 2012
considered verified
Status:
Verified
|