From 859c87e6d92813c7d99c2ceeaad0ded766c820ea Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 16 Nov 2010 01:57:52 -0600 Subject: [PATCH] Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0 --- ui/jquery.effects.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 49ab4e220..111cb6f84 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -432,7 +432,7 @@ function _normalizeArguments(effect, options, speed, callback) { speed = speed || options.duration; speed = $.fx.off ? 0 : typeof speed == 'number' - ? speed : $.fx.speeds[speed] || $.fx.speeds._default; + ? speed : speed in $.fx.speeds ? $.fx.speeds[speed] : $.fx.speeds._default; callback = callback || options.complete; -- 2.39.5