DavidDurman / FlexiJsonEditor

JSON editor jQuery plugin
http://jsonmate.com
Other
560 stars 139 forks source link

path 0.0 #20

Open dreanmer opened 10 years ago

dreanmer commented 10 years ago

if the path is 0.0 your item.data('path') will return 0 instead of 0.0 change to item.attr('data-path') solves the problem.

if you want a try:

[{"name":"html","type":"find","filter":".image-additional a"},{"name":"each","filters":[{"name":"html","type":"href"}]}]

DavidDurman commented 10 years ago

Ah, right. Good one. Could you make a pull request?

dreanmer commented 10 years ago

sorry i really busy to do this, i realy thank you for the script, but the bug solution is simple as

[cmd+r] item.data('path') [tab] item.attr('data-path')

cheers

[]'s

2014-03-05 5:48 GMT-03:00 David Durman notifications@github.com:

Ah, right. Good one. Could you make a pull request?

Reply to this email directly or view it on GitHubhttps://github.com/DavidDurman/FlexiJsonEditor/issues/20#issuecomment-36721048 .

versling commented 9 years ago

There are places where $(this).data('path') are used. Those need to be replaced as well.