From 5c055040d3685b2e01ee1ad06e403a3856f4c8b0 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 17 May 2010 16:48:17 -0500 Subject: [PATCH] Allow named animation speed to be 0. Fixes #6579. --- src/effects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5