Opened 14 years ago
Closed 14 years ago
#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: | ||
Blocked by: | Blocking: |
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 (1)
Change History (3)
Changed 14 years ago by
Attachment: | jquery-1.3.2.js.patch added |
---|
comment:1 Changed 14 years ago by
this is probably a wontfix. dup of #3498 (I tried to suggest this same thing there, and was shot down on the basis of confusing the dev when they only register one)
Note: See
TracTickets for help on using
tickets.
Allow hover to accept a single argument.