Skip to main content

Bug Tracker

Side navigation

Ticket #4234: jquery-1.3.2.js.patch


File jquery-1.3.2.js.patch, 0.3 KB (added by micmath, February 24, 2009 07:30PM UTC)

Allow hover to accept a single argument.

--- jquery-1.3.2.js	2009-02-24 19:16:59.000000000 +0000
+++ jquery-1.3.2.new.js	2009-02-24 19:16:05.000000000 +0000
@@ -3095,7 +3095,7 @@
 	},
 
 	hover: function(fnOver, fnOut) {
-		return this.mouseenter(fnOver).mouseleave(fnOut);
+		return this.mouseenter(fnOver).mouseleave(fnOut || fnOver);
 	},
 
 	ready: function(fn) {

Download in other formats:

Original Format