Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Allowing falsy values to be passed as a speed for hide().

  • Loading branch information...
commit 9cd5866a292b1d653651237802d80393a9081528 1 parent 231c875
authored November 13, 2009 jeresig committed November 13, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/fx.js
2  src/fx.js
@@ -59,7 +59,7 @@ jQuery.fn.extend({
59 59
 	},
60 60
 
61 61
 	hide: function(speed,callback){
62  
-		if ( speed !== undefined ) {
  62
+		if ( speed ) {
63 63
 			return this.animate( genFx("hide", 3), speed, callback);
64 64
 		} else {
65 65
 			for ( var i = 0, l = this.length; i < l; i++ ){

0 notes on commit 9cd5866

Please sign in to comment.
Something went wrong with that request. Please try again.