]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 16 Nov 2010 07:57:52 +0000 (01:57 -0600)
committerScott González <scott.gonzalez@gmail.com>
Tue, 16 Nov 2010 13:14:10 +0000 (08:14 -0500)
ui/jquery.effects.core.js

index 49ab4e2204e9cba64405cfd50fee23ce64e70a74..111cb6f84fa8589f719156754f2fd3e48a53ea6d 100644 (file)
@@ -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;