jquery event: extra for #3498. Using the new mouse(enter|leave) shortcuts in $.fn.hover.

This commit is contained in:
Ariel Flesler 2008-10-22 10:06:54 +00:00
parent 69cbcf8637
commit ad54d14ae5

View 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) {