Bug Tracker

Modify

Ticket #4234 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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

jquery-1.3.2.js.patch Download (327 bytes) - added by micmath 4 years ago.
Allow hover to accept a single argument.

Change History

Changed 4 years ago by micmath

Allow hover to accept a single argument.

comment:1 Changed 4 years ago by dante

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)

comment:2 Changed 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 6324.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.