diff options
author | Ariel Flesler <aflesler@gmail.com> | 2009-09-15 00:32:13 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2009-09-15 00:32:13 +0000 |
commit | 321267dcecdd812090368bf5bd646b3ddfdb4459 (patch) | |
tree | 8742bbe16ceb51d6c66d98d026879c46cbe7af26 /src/fx.js | |
parent | 5e0da8c0365b729f63fbd6d27223776551cb8f46 (diff) | |
download | jquery-321267dcecdd812090368bf5bd646b3ddfdb4459.tar.gz jquery-321267dcecdd812090368bf5bd646b3ddfdb4459.zip |
jquery fx: closes #2542. show/hide(0, fn) wasn't calling the callback.
Diffstat (limited to 'src/fx.js')
-rw-r--r-- | src/fx.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,7 +19,7 @@ function genFx( type, num ){ jQuery.fn.extend({ show: function(speed,callback){ - if ( speed ) { + if ( speed !== undefined ) { return this.animate( genFx("show", 3), speed, callback); } else { for ( var i = 0, l = this.length; i < l; i++ ){ @@ -59,7 +59,7 @@ jQuery.fn.extend({ }, hide: function(speed,callback){ - if ( speed ) { + if ( speed !== undefined ) { return this.animate( genFx("hide", 3), speed, callback); } else { for ( var i = 0, l = this.length; i < l; i++ ){ |