Ticket #10882 (closed bug: fixed)
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: | ||
| Blocking: | Blocked by: |
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.
Change History
comment:1 Changed 18 months ago by dmethvin
- Priority changed from undecided to low
- Resolution set to duplicate
- Status changed from new to closed
- Component changed from unfiled to event
- Milestone changed from None to 1.next
comment:2 Changed 18 months ago by dmethvin
- Status changed from closed to reopened
- Resolution duplicate deleted
comment:3 Changed 18 months ago by dmethvin
- Owner set to dmethvin
- Status changed from reopened to assigned
comment:4 Changed 18 months ago by richhensel@…
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'
comment:5 Changed 15 months ago by dmethvin
@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.
comment:6 Changed 11 months ago by dmethvin
Now that #11731 has deprecated the "hover" event for 1.8, this may be fixable once that hack is removed.
comment:7 Changed 7 months ago by dmethvin
- Owner dmethvin deleted
- Status changed from assigned to open
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.
comment:8 Changed 6 months ago by Dave Methvin
- Status changed from open to closed
- Resolution set to fixed
Close #10882. Test case for "hover" event in 1.9
Changeset: 6b00b3cad94e348c0ba31c196aaac9fbf819fea3
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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.