Skip to main content

Bug Tracker

Side navigation

#4234 closed enhancement (fixed)

Opened February 24, 2009 07:29PM UTC

Closed May 06, 2009 02:17AM UTC

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 (0.3 KB) - added by micmath February 24, 2009 07:30PM UTC.

    Allow hover to accept a single argument.

Change History (2)

Changed March 12, 2009 12:30AM UTC by dante comment:1

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)

Changed May 06, 2009 02:17AM UTC by brandon comment:2

resolution: → fixed
status: newclosed

Fixed in 6324.