Skip to main content

Bug Tracker

Side navigation

#7756 closed bug (duplicate)

Opened December 12, 2010 11:37PM UTC

Closed January 02, 2011 12:55AM UTC

Last modified January 02, 2011 12:55AM UTC

mouseover and mouseout events are not fired within live in 1.4.4

Reported by: amit.sites@gmail.com Owned by:
Priority: high Milestone: 1.6
Component: event Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

I just upgraded from jQuery 1.4.2 to 1.4.4. The following code got broken:

$('#element').live('hover',function(ev) {

if (ev.type =='mouseover') {

Something

} else if (ev.type == 'mouseout') {

Something else

}

}

If I do debug printing on ev.type, I receive only mouseenter and mouseleave messages. Is this a bug or an enhancement? Tried to look for it in the release notes but couldn't find such a behavior change.

Many thanks!

Attachments (0)
Change History (4)

Changed December 13, 2010 12:09AM UTC by rtpmatt comment:1

_comment0: I believe hover binds events to mouseenter/mouseleave not mouseover/mouseout. \ \ see: http://api.jquery.com/hover/1292199347624005

I believe hover binds events to mouseenter/mouseleave not mouseover/mouseout.

see: http://api.jquery.com/hover/

It does seem to work in 1.4.2 though

http://jsfiddle.net/uUq3B/

Changed December 13, 2010 03:54AM UTC by rwaldron comment:2

component: unfiledevent
priority: undecidedhigh
status: newopen

Confirmed;

http://jsfiddle.net/rwaldron/uUq3B/2/

<= 1.4.2 : over/out

>= 1.4.3 : enter/leave

Changed January 02, 2011 12:55AM UTC by rwaldron comment:3

resolution: → duplicate
status: openclosed

Changed January 02, 2011 12:55AM UTC by rwaldron comment:4

Duplicate of #6514.