mar10 / dynatree

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

multiple LoadKeyPath calls, Duplicate nodes 1.2.2 #393

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If you have multiple loadKeyPaths below one another with different paths
2. When the tree loads and executes the paths then duplicate nodes show
3.

What is the expected output? What do you see instead?
Expected output is to see the tree load and loadKeyPath open the tree and 
selects the checkboxes.
What i see instead is that duplicate nodes are displaying which i see as a bug. 
My two checkboxes become checked but there are many duplicate nodes.

What version of the dynatree and jQuery are you using? 1.2.2
On what operating system and browser? Windows 7 and chrome 24.0.1312.52 m
What DOCTYPE declaration are you using?<!doctype html>

Please provide any additional information below.

Here is the code that i am executing. The ajax.php returns an array of paths. 
The array is split and then a each runs through the split array. For every loop 
the path is sent to the loadKeyPath. This should select the checkboxes and open 
the tree for every path sent. I see duplicates. I have noticed that this 
problem occurs when the loadKeyPath happens too fast. The first one needs to 
load and then onsuccess , the second needs to load and so forth.

Code: https://gist.github.com/4563360

Original issue reported on code.google.com by jackkit...@gmail.com on 18 Jan 2013 at 9:18

GoogleCodeExporter commented 9 years ago
same problem here and only happens in Google Chrome while using debug console.
using Dynatree 1.2.4 and Jquery 2.0.3

Original comment by fmunt...@gmail.com on 22 Aug 2013 at 12:52

GoogleCodeExporter commented 9 years ago
I haven't tried to reproduce, but I know there might be problems with multiple 
async requests. 
This may be hard to fix with and was one of the reasons I started Fancytree.

Original comment by moo...@wwwendt.de on 23 Aug 2013 at 5:11

GoogleCodeExporter commented 9 years ago
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that 
the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree

Original comment by moo...@wwwendt.de on 1 May 2014 at 4:38