mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds to be 0
This commit is contained in:
parent
c2139fc2e6
commit
859c87e6d9
2
ui/jquery.effects.core.js
vendored
2
ui/jquery.effects.core.js
vendored
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user