Side navigation
#6077 closed bug (fixed)
Opened February 11, 2010 09:50PM UTC
Closed February 20, 2010 10:17PM UTC
Live mouseenter/mouseleave not working in 1.4.2pre
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.2 | |
Component: | event | Version: | 1.4.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Attachments (0)
Change History (3)
Changed February 11, 2010 09:50PM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
Changed February 20, 2010 05:57PM UTC by comment:2
resolution: | fixed |
---|---|
status: | closed → reopened |
in 1.4.1 release
$("#node").live("hover", function(e) {alert(e.type)}) fires two events: mouseenter and mouseleave, like $("#node").hover(function(e) {alert(e.type)})
but in 1.4.2 release
$("#node").live("hover", function(e) {alert(e.type)}) fires two events: mouseover and mouseout, but
$("#node").hover(function(e) {alert(e.type)}) still works as expected - fires mouseenter and mouseleave.
Tested in FF3.6, Safari 4
Changed February 20, 2010 10:17PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | reopened → closed |
Nope, that's very much intentional - we made it that way so that it was possible to bind one function that could handle both events.
Fixed.
http://github.com/jquery/jquery/commit/5d36fe3210787009e15e05ad602525d0c2823b5c