Skip to main content

Bug Tracker

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 john comment:1

resolution: → fixed
status: newclosed

Changed February 20, 2010 05:57PM UTC by Yury comment:2

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

Changed February 20, 2010 10:17PM UTC by john comment:3

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.