When I wrote my framework at work with a .bind method similar to jQuery
I actually ended up adding another simple way to call it thinking jQuery
supported it.
$(node).unbind(); // everything
$(node).unbind('type'); // all events of type
$(node).unbind('type', func); // just the func event on type
$(node).unbind(func); // func on all types; not supported by jQuery
It's another useful call. I actually use it a fair bit at work since
it's about as short as helper methods:
function someClickEventFunc() { ... }
$(node).click(someClickEventFunc);
$(node).unbind(someClickEventFunc);
Worth an enhancement ticket?
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---