fix for #4234. hover can take one function to use for both enter and leave.
This commit is contained in:
parent
3a9c827bf8
commit
8f042d8be3
2 changed files with 19 additions and 1 deletions
|
@ -569,7 +569,7 @@ jQuery.fn.extend({
|
|||
},
|
||||
|
||||
hover: function( fnOver, fnOut ) {
|
||||
return this.mouseenter( fnOver ).mouseleave( fnOut );
|
||||
return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
|
||||
},
|
||||
|
||||
ready: function( fn ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue