Skip to content
Permalink
Browse files
Allowing falsy values to be passed as a speed for hide().
  • Loading branch information
Scott Gonzalez authored and jeresig committed Nov 13, 2009
1 parent 231c875 commit 9cd5866
Showing 1 changed file with 1 addition and 1 deletion.
@@ -59,7 +59,7 @@ jQuery.fn.extend({
},

hide: function(speed,callback){
if ( speed !== undefined ) {
if ( speed ) {
return this.animate( genFx("hide", 3), speed, callback);
} else {
for ( var i = 0, l = this.length; i < l; i++ ){

0 comments on commit 9cd5866

Please sign in to comment.