X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Feffects.js;h=f3163ebbf984f56a5c6b14c70340b671232a8564;hb=a088751a1b2c5761dab8de9d7da8602defb45b11;hp=d1d873def42ded6824033dd19b2a07ce1e16cf6c;hpb=5d45448e713af7d4a1e57a63ecde25589eb31007;p=jquery.git diff --git a/src/effects.js b/src/effects.js index d1d873d..f3163eb 100644 --- a/src/effects.js +++ b/src/effects.js @@ -256,7 +256,7 @@ jQuery.extend({ }; opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : - jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default; + opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default; // Queueing opt.old = opt.complete;