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

This commit is contained in:
Scott Gonzalez 2009-11-13 06:39:33 +08:00 committed by John Resig
parent 231c875678
commit 9cd5866a29

View file

@ -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++ ){