Bug Tracker

Modify

Ticket #7756 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

mouseover and mouseout events are not fired within live in 1.4.4

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

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!

Change History

comment:1 Changed 2 years ago by rtpmatt

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/

Last edited 2 years ago by rtpmatt (previous) (diff)

comment:2 Changed 2 years ago by rwaldron

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to event

Confirmed;

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

<= 1.4.2 : over/out

1.4.3 : enter/leave

comment:3 Changed 2 years ago by rwaldron

  • Status changed from open to closed
  • Resolution set to duplicate

comment:4 Changed 2 years ago by rwaldron

Duplicate of #6514.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.