Export to GitHub

dynatree - issue #493

visitParents isn't working


Posted on Oct 27, 2014 by Happy Panda

I made an extremely simple jsFiddle to show the issue.

http://jsfiddle.net/Michael_0/qfbwgmca/

Comment #1

Posted on Oct 28, 2014 by Happy Panda

Edit : http://jsfiddle.net/Michael_0/qfbwgmca/1/

Comment #2

Posted on Oct 28, 2014 by Happy Bear

The sample does not run (external dynatree lib is not loaded. Anyway: the callback passed to visitParents receives the visited node. So it should be

node.visitParents(function (parentNode) { console.log("visitParents : " + parentNode.data.title); }, false);

Comment #3

Posted on Oct 29, 2014 by Happy Panda

Comment deleted

Comment #4

Posted on Oct 29, 2014 by Happy Panda

You are right, I forgot the callback's argument. Thank you.

Status: Invalid

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