Modify ↓
Ticket #4234 (closed enhancement: fixed)
Allow hover to accept a single argument.
| Reported by: | micmath | Owned by: | brandon |
|---|---|---|---|
| Priority: | trivial | Milestone: | 1.4 |
| Component: | event | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Would be useful when a hover argument function simply toggles a state, that is the fnOver and fnOut are identical.
for example var toggleState = function(e) {
$(this).toggleClass('over');
};
prefer to do this... $('#myId').hover(toggleState); versus the current... $('#myId').hover(toggleState, toggleState);
Attachments
Change History
Changed 4 years ago by micmath
-
attachment
jquery-1.3.2.js.patch
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Allow hover to accept a single argument.