Skip to main content

Bug Tracker

Side navigation

#10882 closed bug (fixed)

Opened November 24, 2011 08:28AM UTC

Closed November 24, 2012 08:26PM UTC

Cannot fire/handle custom hover event in jQuery 1.7

Reported by: Gidon Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

See the following fiddle: http://jsfiddle.net/s6gSe/

When running in jQuery 1.6.4, it works great.

Going up to 1.7, the custom hover event is not anymore handled. While my custom dblclick event is still handled correctly.

Attachments (0)
Change History (8)

Changed November 24, 2011 08:45PM UTC by dmethvin comment:1

component: unfiledevent
milestone: None1.next
priority: undecidedlow
resolution: → duplicate
status: newclosed

This was introduced by the "fix" for #7139, which I would gladly remove given its confusing properties. Perhaps we can convince everyone to remove it.

Changed November 24, 2011 08:46PM UTC by dmethvin comment:2

resolution: duplicate
status: closedreopened

Changed November 24, 2011 08:46PM UTC by dmethvin comment:3

owner: → dmethvin
status: reopenedassigned

Changed December 05, 2011 02:04PM UTC by richhensel@gmail.com comment:4

I was trying to add a custom event called 'xyz.hoverUrl.set' and it replaces that event with 'mouseleaveUrl'

The regex is too permissive in the hoverhack. Please make it more specific.

test case:

//////////////

var a = {};

$(a).bind('xyz.hoverUrl.set', function(){return});

//////////////

look at events for a and you will see 'mouseleaveUrl'

Changed March 04, 2012 07:54PM UTC by dmethvin comment:5

@richhensel, that bug doesn't appear in 1.7.1 as far as I can tell, but if it does please create a new test case and ticket.

Changed June 26, 2012 01:37AM UTC by dmethvin comment:6

Now that #11731 has deprecated the "hover" event for 1.8, this may be fixable once that hack is removed.

Changed October 22, 2012 05:28PM UTC by dmethvin comment:7

owner: dmethvin
status: assignedopen

Need to actually move the deprecated code and unit tests to the jquery-compat plugin and write a unit test showing a custom "hover" event can be triggered now.

Changed November 24, 2012 08:26PM UTC by Dave Methvin comment:8

resolution: → fixed
status: openclosed

Close #10882. Test case for "hover" event in 1.9

Changeset: 6b00b3cad94e348c0ba31c196aaac9fbf819fea3