Would you be able to unbind a specific function with a specific scope?

$(el).bind('click', fn, foo);
$(el).bind('click', fn, bar);

$(el).unbind('click', fn, foo);


On May 4, 12:47 am, Brandon Aaron <[email protected]> wrote:
> Looking for any feedback on #3699 before committing, which is for allowing
> an alternative scope for events. There is a patch attached to the ticket.
> The ticket actually proposes a method signature that doesn't really fit
> jQuery's style. I added a patch that allows the following call signature
> instead.
> $(...).bind("type", fn, scope);
> $(...).bind("type", data, fn, scope);
>
> This also applies to .one() and .live().
>
> The patch utilizes the internal event.proxy method with a tweak to include
> an optional scope.
>
> --
> Brandon Aaron
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to