views:

113

answers:

1

I know we can have this in 1.4:

$("a").bind({
  click : clickFn,
  mouseover: mouseFn
});

and that is nice and i would like to use it, but it seems like there is no way to pass extra data to events bound this way, it needs to be done the 'old way':

$("a").bind("click", {"some":"data"}, clickFn);

Question: how can i pass the extra data to my event call backs and bind multiple events in a single bind at the same time?

+2  A: 
Gaby
good idea. though you are missing the event param now, but i can add that in.
mkoryak