Bug Tracker

Opened 8 years ago

Closed 8 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 8 years ago by john

Resolution: fixed
Status: newclosed

comment:2 Changed 8 years ago by Yury

Resolution: fixed
Status: closedreopened

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 8 years ago by john

Resolution: fixed
Status: reopenedclosed

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.