On 21/04/2007, at 5:14 PM, SiCo wrote:
$('ele').unbind('mouseover').unbind('mouseout');
Unbind each individual event, I don't know why Joel names the
function? Can you have multiple functions?
The code:
$('ele').unbind('mouseover').unbind('mouseout');
...clears all handlers for those events, but if you name the handler
you want to remove then only that functionality is unbound leaving
other functions attached to those events intact. If you do want to
clear all handlers then the aforementioned code is perfect.
Joel.