From: J. Ryan Stinnett Date: Tue, 16 Nov 2010 07:57:52 +0000 (-0600) Subject: Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0 X-Git-Tag: 1.8.7~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=859c87e6d92813c7d99c2ceeaad0ded766c820ea;p=jquery-ui.git Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0 --- 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;