jQuery data unavailable in onunmatch

17 views
Skip to first unread message

Venkat

unread,
Nov 3, 2011, 1:31:52 PM11/3/11
to jQuery Entwine
When onunmatch is fired, I need to be able to access the jquery data
of the element so I can do the necessary cleanup (like clearInterval,
etc). Currently, the data is empty in the onunmatch handler.

I have isolated the issue here:

https://gist.github.com/1337120

If you click on the "click" link, you can see that the data is
present. When you click "remove", you can see that the data is no
longer there.

Venkat

unread,
Nov 3, 2011, 1:40:27 PM11/3/11
to jQuery Entwine
Update: looks like this has nothing to do with entwine. jQuery's
remove method erases any data. I need to use detach instead.
Reply all
Reply to author
Forward
0 new messages