Bug Tracker

Opened 10 years ago

Closed 10 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)

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

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by micmath

Attachment: jquery-1.3.2.js.patch added

Allow hover to accept a single argument.

comment:1 Changed 10 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 10 years ago by brandon

Resolution: fixed
Status: newclosed

Fixed in 6324.

Note: See TracTickets for help on using tickets.