Thursday, December 3, 2009

[jQuery] events, this.options and empty()

I have a small problem with event-functions not seeing the
"this.options"-variable.

Small example:
http://event.pastebin.com/m249d7f9d

I tried to work around it by supplying "this" in the "data"-parameter
for every .bind(),
but it is an ugly solution I think.


Also, is it bad to just call .empty() even if there are several events
bound to the nodes being discarded?


Thank you.

No comments:

Post a Comment