webanimals / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Similar issue to issue 231, but this time in removeChild function #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Removing a node with multiple siblings

I occasionally receive uncaught exception: [Exception... "Component returned 
failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) 
[nsIDOMHTMLUListElement.removeChild]"  nsresult: "0x80004003 
(NS_ERROR_INVALID_POINTER)" 

Problem Code:
jquery.dynatree.js line 1380 in removeChild function:

    this.ul.removeChild(tn.li);

Replace with (per the 231 issue fix in removeChildren function):

if(this.ul){
    $('li',$(this.ul)).remove()}
}
 - Dynatree v1.2.0 (minimized version)
 - jQuery 1.8.0
 - Firefox 18.0

Also, not sure if related or not, as i'm new to dynatree, but after multiple 
nodes are removed, the parent node remains partially selected(green highlight). 
Not sure what causes it, and can't seem to replicate it.

Original issue reported on code.google.com by Eboqu...@gmail.com on 31 Jan 2013 at 5:29

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 31 Jan 2013 at 5:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r640.

Original comment by moo...@wwwendt.de on 10 Feb 2013 at 8:15