| Issue 31: | Clicking next to a node raises an error | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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;
}
Jul 17, 2012
considered verified
Status:
Verified
|
Labels: Milestone-Release0.3