Nate Cavanaugh schrieb:
> This was one of my big issues when I started jQuery, but there is now a
> solution as of 1.1.
>
> When you bind your method to an event, you can pass in your current object,
> and still reference it in your event function.
>
> Basically, you can pass in ANY data to your event function, and you would
> reference it with e.data, instead of this.
> This will always point to the element that is firing the event, but you can
> now reference your data by passing in that data as the second parameter,
> like so: $(...selector...).bind('click', CUSTOM_DATA, function(e){})
Hey thanks Nate! Never thought of that approach. It's great to see what 
people come up to with the feature you implemented.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to