Skip to main content

Bug Tracker

Side navigation

#13470 closed bug (notabug)

Opened February 18, 2013 10:23AM UTC

Closed February 18, 2013 01:48PM UTC

Last modified February 18, 2013 01:49PM UTC

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:
Description

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.

Attachments (0)
Change History (2)

Changed February 18, 2013 01:48PM UTC by rwaldron comment:1

resolution: → notabug
status: newclosed

Changed February 18, 2013 01:49PM UTC by DerVO comment:2

thx