I am using namespaced events in a widget...
$P
.bind("mouseenter."+ namespace, addHover )
.bind("mouseleave."+ namespace, removeHover )
;
...so I can unbind all events at once when I 'destroy' the widget...
$P.unbind("."+ namespace) // remove events
This works fine for all events *except* mouseenter and mouseleave -
these do not unbind. They still don't unbind even when I add the
specific event name...
$P.unbind("mouseenter."+ namespace) // no worky!
I can only unbind ALL mouseenter/leave events...
$P.unbind("mouseenter")
$P.unbind("mouseleave")
This is true in both IE7 and FF3. Am I missing something, or is this a
bug? If so, I assume it's because these are 'psuedo events', not
regular DOM events?
/Kevin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---