Ticket #7139 (closed enhancement: fixed)
"hover" event alias should work for .bind as well as .live
| Reported by: | cowboy | Owned by: | dmethvin |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7 |
| Component: | event | Version: | 1.4.2 |
| Keywords: | 1.7-discuss | Cc: | |
| Blocking: | Blocked by: |
Description (last modified by dmethvin) (diff)
Is there a reason this is .live-only?
http://github.com/jquery/jquery/blob/master/src/event.js#L1012-1015
Change History
comment:1 Changed 3 years ago by addyosmani
- Priority changed from undecided to low
- Type changed from bug to enhancement
comment:3 Changed 3 years ago by rwaldron
- Component changed from unfiled to event
- Milestone changed from 1.4.3 to 1.5
Reproduced.
comment:4 Changed 2 years ago by alexis.abril
Added a pull request for the following fix: http://jsfiddle.net/nMAq6/
Pull request: https://github.com/jquery/jquery/pull/303
comment:6 Changed 2 years ago by john
- Milestone changed from 1.7 to 1.next
Let's discuss this in the 1.7 roadmap discussion.
comment:7 Changed 2 years ago by john
- Keywords 1.7-discuss added
Nominating ticket for 1.7 discussion.
comment:12 Changed 2 years ago by dmethvin
- Description modified (diff)
+1, If we can't remove the mythical "hover" event we are destined to perpetuate it to live/delegate.
comment:13 Changed 2 years ago by john
- Description modified (diff)
+1, D'oh, let's get this working.
comment:14 Changed 2 years ago by jzaefferer
+0
comment:15 Changed 23 months ago by dmethvin
- Owner set to dmethvin
- Status changed from open to assigned
- Description modified (diff)
- Milestone changed from 1.next to 1.7
comment:16 Changed 20 months ago by dmethvin
- Status changed from assigned to closed
- Resolution set to fixed
In 1.7 the code is refactored so that hover works for all event attachment methods. For code clarity don't use it, please, since it's just an alias for "mouseover mouseout" and does not detect or deliver a "hover" event type.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
