aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2009-09-15 00:32:13 +0000
committerAriel Flesler <aflesler@gmail.com>2009-09-15 00:32:13 +0000
commit321267dcecdd812090368bf5bd646b3ddfdb4459 (patch)
tree8742bbe16ceb51d6c66d98d026879c46cbe7af26 /src/fx.js
parent5e0da8c0365b729f63fbd6d27223776551cb8f46 (diff)
downloadjquery-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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fx.js b/src/fx.js
index 0596b2b3e..a73ce3272 100644
--- 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 ) {
+ 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++ ){