jquery event: extra for #3498. Using the new mouse(enter|leave) shortcuts in $.fn...
authorAriel Flesler <aflesler@gmail.com>
Wed, 22 Oct 2008 10:06:54 +0000 (10:06 +0000)
committerAriel Flesler <aflesler@gmail.com>
Wed, 22 Oct 2008 10:06:54 +0000 (10:06 +0000)
src/event.js

index 90abe03..d5ca6cd 100644 (file)
@@ -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) {