Skip to content
Permalink
Browse files

jquery event: extra for #3498. Using the new mouse(enter|leave) short…

…cuts in $.fn.hover.
  • Loading branch information
flesler committed Oct 22, 2008
1 parent 69cbcf8 commit ad54d14ae55dd7e8063dc0c2c67346c4345d7259
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
@@ -467,7 +467,7 @@ jQuery.fn.extend({
},

hover: function(fnOver, fnOut) {
return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut);
return this.mouseenter(fnOver).mouseleave(fnOut);
},

ready: function(fn) {

0 comments on commit ad54d14

Please sign in to comment.
You can’t perform that action at this time.