Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data not loaded from markup from FancyTree #191

Closed
ptitpix opened this issue Apr 14, 2014 · 0 comments
Closed

data not loaded from markup from FancyTree #191

ptitpix opened this issue Apr 14, 2014 · 0 comments
Milestone

Comments

@ptitpix
Copy link

ptitpix commented Apr 14, 2014

Hello.
It seems that FancyTreenode.data are filled by data-* attributes on provided LI but Fancytree.data is never filled with data-* found on the widget DIV.
I patched my own version at line 1619 with :

this.data = $.extend({}, this.$div.data());  

in place of

this.data = {}

It works for me but i'm not sure it's the right place to fix it or if I missed the point.

@mar10 mar10 modified the milestones: 2.0.0 Backlog, 2.1 Backlog Apr 14, 2014
@mar10 mar10 closed this as completed in 55a1dcf Apr 27, 2014
@mar10 mar10 modified the milestones: 2.0.0 Backlog, 2.1 Backlog May 1, 2014
@mar10 mar10 modified the milestones: 2.0.0beta, v2.0.0 May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants