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

index 801d92c0c65116e542c2af9379d65f1f96f06e9e..62cda09e1176429370730a352465a85c2883d01d 100644 (file)
--- a/src/fx.js
+++ b/src/fx.js
@@ -19,7 +19,7 @@ function genFx( type, num ){
 
 jQuery.fn.extend({
        show: function(speed,callback){
-               if ( speed !== undefined ) {
+               if ( speed ) {
                        return this.animate( genFx("show", 3), speed, callback);
                } else {
                        for ( var i = 0, l = this.length; i < l; i++ ){