My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 48: rootVisible false, keyboard: true causes error on init
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  moo...@wwwendt.de
Closed:  Nov 2008


 
Reported by gabriell...@gmail.com, Oct 29, 2008
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
I met the same problem with firefox on ubuntu, and the fix also worked.
Nov 1, 2008
Project Member #2 moo...@wwwendt.de
reproduced
Status: Accepted
Owner: moo...@wwWendt.de
Labels: Milestone-Release0.3
Nov 1, 2008
Project Member #3 moo...@wwwendt.de
Fixed with r68
Status: Fixed
Jul 17, 2012
Project Member #4 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting