]> source.dussan.org Git - jquery.git/commitdiff
Allowing falsy values to be passed as a speed for hide().
authorScott Gonzalez <sgonzale@sgonzale-laptop.local>
Thu, 12 Nov 2009 22:39:33 +0000 (06:39 +0800)
committerJohn Resig <jeresig@gmail.com>
Fri, 13 Nov 2009 04:23:39 +0000 (12:23 +0800)
src/fx.js

index 62cda09e1176429370730a352465a85c2883d01d..c34b85672033ce68ea9a4a6dfa49e5c401da15a2 100644 (file)
--- a/src/fx.js
+++ b/src/fx.js
@@ -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++ ){