mbraak / jqTree

Tree widget for jQuery
https://mbraak.github.io/jqTree/
Apache License 2.0
1.02k stars 177 forks source link

UpdateNode documentation #79

Closed cpostlethwait closed 12 years ago

cpostlethwait commented 12 years ago

Just wanted to make you aware that your documentation on the UpdateNode function seems to be missing the node parameter... took a few extra minutes to figure out how to use it which isn't a big deal, but probably not hard to correct either.

http://mbraak.github.com/jqTree/#functions-updatenode

current: var node = $tree.tree('getNodeById', 123); $tree.tree('updateNode', 'new label');

corrected: var node = $tree.tree('getNodeById', 123); $tree.tree('updateNode', node, 'new label');

mbraak commented 12 years ago

Thanks a lot. This is now fixed in the dev branch