y1feng200156 / dynatree

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

node.getKeyPath() always starts path with "/", regardless of tree.options.keyPathSeparator #487

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set tree.options.keyPathSeparator to something other than '/'
2. call node.getKeyPath()
3. keyPath returned always starts with '/'
4. tree.loadKeyPath(keyPath) fails

http://jsfiddle.net/M4zwm/3/

What is the expected output? What do you see instead?

keyPath with either leading keyPathSeparator or no leading char at all, but not 
'/'.

What version of the dynatree and jQuery are you using? dynatree 1.2.5
On what operating system and browser? any
What DOCTYPE declaration are you using? html

Please provide any additional information below.

Maybe best to just remove leading char? Doesn't appear to be useful.

Original issue reported on code.google.com by me...@goolrick.us on 2 May 2014 at 10:40

GoogleCodeExporter commented 9 years ago

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

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

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