.unbind(func);

.unbind(func);


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)