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);
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)