Export to GitHub

dynatree - issue #487

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


Posted on May 2, 2014 by Grumpy Hippo

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.

Comment #1

Posted on May 3, 2014 by Happy Bear

(No comment was entered for this change.)

Comment #2

Posted on May 3, 2014 by Happy Bear

This issue was closed by revision r702.

Status: Fixed

Labels:
Type-Defect Priority-Medium Milestone-Release1.2.6