Skip to main content

Bug Tracker

Side navigation

#9143 closed bug (duplicate)

Opened May 06, 2011 10:20AM UTC

Closed May 06, 2011 03:46PM UTC

Last modified March 13, 2012 02:32PM UTC

Wrong behavior for "mouseenter" and "mouseleave" with "live"

Reported by: denis@digits.no Owned by:
Priority: high Milestone: 1.next
Component: event Version: 1.6
Keywords: Cc:
Blocked by: Blocking:
Description

e.type returns "mouseover" when "mouseenter" fires and "mouseout" when "mouseleave" fires. See an example:

$('ul li').live('mouseenter mouseleave', function (e) {

var target = e.target ? e.target : event.srcElement;

console.log(e.type);

...

});

it looks like "mouseenter" behaves like "mouseover" and "mouseleave" like "mouseout".

Attachments (0)
Change History (2)

Changed May 06, 2011 03:46PM UTC by timmywil comment:1

component: unfiledevent
priority: undecidedhigh
resolution: → duplicate
status: newclosed

Changed May 06, 2011 03:46PM UTC by timmywil comment:2

Duplicate of #9069.