diff options
author | J. Ryan Stinnett <jryans@gmail.com> | 2010-11-16 01:57:52 -0600 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-11-16 08:14:10 -0500 |
commit | 859c87e6d92813c7d99c2ceeaad0ded766c820ea (patch) | |
tree | edcab8832c7345962560dfd04ef0f8bd1f949ddb /ui/jquery.effects.core.js | |
parent | c2139fc2e6c7ef3176ecc01d427188b3752392ef (diff) | |
download | jquery-ui-859c87e6d92813c7d99c2ceeaad0ded766c820ea.tar.gz jquery-ui-859c87e6d92813c7d99c2ceeaad0ded766c820ea.zip |
Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0
Diffstat (limited to 'ui/jquery.effects.core.js')
-rw-r--r-- | ui/jquery.effects.core.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |