Sochettra / dynatree

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

Duplicate nodes using loadKeyPath() #240

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a lazy tree with depth > 1
2. Call loadKeyPath() for multiple descendants of a node
3. The resulting tree contains duplicate nodes

An example that replicates the behavior (in this case duplicates all children 
of node 'A'):

function() {
  var tree = $("#tree").dynatree("getTree");
  tree.loadKeyPath('/A/01', function() {});
  tree.loadKeyPath('/A/02', function() {});
} 

What is the expected output? What do you see instead?
I expect no node duplication. 

What version of the product are you using?
1.2.0

On what operating system and browser?
Windows Vista, Chrome 14, FF 6.0.2, IE 9.0 

Please provide any additional information below.
The bug seems to appear only if the second loadKeyPath() call is made before 
the loading of the node in the first loadKeyPath() call has completed. 

Original issue reported on code.google.com by c.m.sno...@gmail.com on 22 Oct 2011 at 12:38

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 22 Oct 2011 at 1:29

GoogleCodeExporter commented 8 years ago
I think it's related to issue 222

Original comment by moo...@wwwendt.de on 26 Dec 2011 at 8:25

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 1 Oct 2012 at 6:23

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 3 May 2014 at 10:08