From: J. Ryan Stinnett Date: Mon, 17 May 2010 21:48:17 +0000 (-0500) Subject: Allow named animation speed to be 0. Fixes #6579. X-Git-Tag: 1.4.3rc1~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5c055040d3685b2e01ee1ad06e403a3856f4c8b0;p=jquery.git Allow named animation speed to be 0. Fixes #6579. --- diff --git a/src/effects.js b/src/effects.js index d1d873def..f3163ebbf 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;