unbinding hover()
unbinding hover()
I'm not sure how to unbind hover handlers.
Here is the problem: I am writing plugin that uses $(...).hover(f,g)
function to bind mouseover and mouseout handlers. When cleanup time
comes I cannot unbind only my handlers because they are not really
bound to mouseover and mouseout events. That is handleHover(e) private
function from jQuery core which cannot be namespaced in v.1.2.1. I can
unbind all the handlers for these events but it is certainly not
desired behavior for any plugin.
I'm going to copy hover() code from core and namespace my version but
it doesn't feel like "write less do more" way.
Did I miss anything? Does anyone have good suggestion how to make my
copy of hover() private (not to extend $.fn object)?