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 31: Clicking next to a node raises an error
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Sep 2008


 
Reported by NathanB...@gmail.com, Sep 4, 2008
What steps will reproduce the problem?
1. Clicking next to a node, not ON a node

What is the expected output? What do you see instead?
Expected to return null, but raises error " 'null' is null or not an 
object " at line 663 in 'jquery-dynatree.js'

What version of the product are you using? On what operating system and 
browser?
Version 0.3 Beta


Please provide any additional information below.
The solution to this error is to replace line 663 in jquery.dynatree.js :

function fnClick(event) {
	var dtnode = _getNodeFromElement(event.target);
	return dtnode.onClick(event);
}


with this:

function fnClick(event) {
	var dtnode = _getNodeFromElement(event.target);
	if(dtnode != null)
		return dtnode.onClick(event);
	
	return null;
}


 
Sep 4, 2008
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Fixed
Labels: Milestone-Release0.3
Jul 17, 2012
Project Member #2 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting