Side navigation
#5326 closed bug (worksforme)
Opened October 05, 2009 07:02PM UTC
Closed October 29, 2010 04:32PM UTC
Cannot unbind mouseenter/mouseleave events using a 'namespace'
Reported by: | ALLPRO | Owned by: | ALLPRO |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | event | Version: | 1.3.2 |
Keywords: | unbind namespace mouseenter mouseleave | Cc: | |
Blocked by: | Blocking: |
Description
The unbind(".NAMESPACE") functionality does not work for the mouseenter and mouseleave pseudo-events.
$(el).bind("click.mywidget");
$(el).bind("mouseenter.mywidget");
$(el).unbind(".mywidget"); unbind
This unbinds "click.mywidget", but NOT "mouseenter.mywidget".
Even if the event name is added, mouseenter still won't unbind when the namespace is specified...
$(el).unbind("mouseenter.mywidget"); does not work
The only way to unbind mouseenter is to *not* specify the namespace - ie, unbind *all* mouseenter events...
$P.unbind("mouseenter"); works normally
The same thing applies to mouseleave.
The main issue here is that unbinding an event.namespace *should* unbind ALL events that were added using bind("event.namespace").
FYI: I posted this in the dev-forum for feedback, but got no response:
http:groups.google.com/group/jquery-dev/browse_thread/thread/dc9610de500e6cec/c16d3307ff8c93c2?hl=en#c16d3307ff8c93c2
Attachments (0)
Change History (4)
Changed October 05, 2009 07:36PM UTC by comment:1
Changed October 25, 2010 08:56PM UTC by comment:2
milestone: | 1.4 |
---|---|
owner: | brandon → ALLPRO |
priority: | minor → undecided |
status: | new → pending |
Please provide a jsFiddle test case. Thank you.
Changed October 29, 2010 04:25PM UTC by comment:3
I created a jsfiddle for this, but it does not support the bug, rather it shows things functioning properly.
This fiddle uses the latest jquery and everything functions properly there as well.
Changed October 29, 2010 04:32PM UTC by comment:4
resolution: | → worksforme |
---|---|
status: | pending → closed |
Issue no longer exists; 1.4.4-git
Tested with supported versions of:
Chrome,Opera,FF,Safari,Ie
There is a typo in this post...
__This should be__:
/Kevin