simonexmachina / jquery-bonsai

Super lightweight jQuery tree plugin
http://simonwade.me/jquery-bonsai
MIT License
148 stars 42 forks source link

Tree-Subelements with custom "data"-attributes lost "data"-attributes #17

Closed huehnerhose closed 9 years ago

huehnerhose commented 9 years ago

another suggestion: I use custom $(element).data() attributes on my tree elements. Line 205 used jQuery.remove(), which deletes all events and data. I am not sure if events should be removed at this point. But I am sure that remove() is too much :)

simonexmachina commented 9 years ago

Okay, good call. I wasn't aware that .remove() did that.

simonexmachina commented 9 years ago

Pushed v1.2.2