Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0

This commit is contained in:
J. Ryan Stinnett 2010-11-16 01:57:52 -06:00 committed by Scott González
parent c2139fc2e6
commit 859c87e6d9

View File

@ -432,7 +432,7 @@ function _normalizeArguments(effect, options, speed, callback) {
speed = speed || options.duration; speed = speed || options.duration;
speed = $.fx.off ? 0 : typeof speed == 'number' 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; callback = callback || options.complete;