Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#13470 closed bug (notabug)

Can't use hover event with .delegate() or .on()

Reported by: DerVO Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:


The following code worked on jQuery v1.6.4

$('mydiv').delegate('seconddiv','hover', function( event ) {
    // do something depending on event.type

Using the current 1.9.1 the event never gets fired. If i use mouseenter mouseleave instead of hover it works as expected.

I tried both the delegate() and the on() function with same result.

Here is an example using jQuery v1.8.3: http://jsfiddle.net/UQ5p7/ -> it works as expected. Here the exact same thing with v1.9.1: http://jsfiddle.net/djS8g/1/ -> nothing happens at all.

Change History (2)

comment:1 Changed 10 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

comment:2 Changed 10 years ago by DerVO


Note: See TracTickets for help on using tickets.