Opened 10 years ago
Closed 10 years ago
#6077 closed bug (fixed)
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: |
Change History (3)
comment:1 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
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
comment:3 Changed 10 years ago by
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.
Note: See
TracTickets for help on using
tickets.
Fixed. http://github.com/jquery/jquery/commit/5d36fe3210787009e15e05ad602525d0c2823b5c