Skip to main content

Bug Tracker

Side navigation

#6615 closed bug (fixed)

Opened May 31, 2010 07:52AM UTC

Closed October 25, 2010 09:07PM UTC

Last modified March 13, 2012 07:39PM UTC

Delegated 'mouseenter' and 'mouseleave' events are reported as 'mouseover' 'mouseout'

Reported by: bartaz Owned by:
Priority: low Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

Delegated mouseenter and mouseleave events are reported as mouseover and mouseout in event type property.

For example:

$(document).delegate('div', 'mouseenter mouseleave', function(ev){
    console.log(ev.type);
});

reports mouseover and mouseleave;

The same with 'hover' alias that is said to be mapped to mouseenter and mouseleave.

This behaviour should be documented or fixed as it is confusing for developers that want to check the type of delegated events.

Attachments (0)
Change History (2)

Changed May 31, 2010 08:02AM UTC by bartaz comment:1

I created a basic test case at: http://jsfiddle.net/auK46/

Changed October 25, 2010 09:07PM UTC by rwaldron comment:2

_comment0: This issue no longer exists \ \ http://jsfiddle.net/rwaldron/8cykH/1288040981071591
priority: → low
resolution: → fixed
status: newclosed

This issue no longer exists

http://jsfiddle.net/rwaldron/8cykH/1/