Bug Tracker

Modify

Ticket #6077 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

Change History

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

comment:2 Changed 4 years ago by Yury

  • Status changed from closed to reopened
  • Resolution fixed deleted

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

comment:3 Changed 4 years ago by john

  • Status changed from reopened to closed
  • Resolution set to fixed

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.

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.