mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects: Properly normalizing arguments for named speeds.
Fixes #5192 - 1.8rc2 Toggle speed issue.
This commit is contained in:
parent
9cabe8403e
commit
6d7196f803
2
ui/jquery.effects.core.js
vendored
2
ui/jquery.effects.core.js
vendored
@ -418,7 +418,7 @@ function _normalizeArguments(effect, options, speed, callback) {
|
|||||||
speed = null;
|
speed = null;
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
if (typeof options == 'number') {
|
if (typeof options == 'number' || $.fx.speeds[options]) {
|
||||||
callback = speed;
|
callback = speed;
|
||||||
speed = options;
|
speed = options;
|
||||||
options = {};
|
options = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user