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-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=5c055040d3685b2e01ee1ad06e403a3856f4c8b0;hp=5d45448e713af7d4a1e57a63ecde25589eb31007;p=jquery.git Allow named animation speed to be 0. Fixes #6579. --- 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;