mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed argument shifting for effects. Fixes #5731 - hide and show called with ommiting the options in parameters does not call the callback.
This commit is contained in:
parent
bf947d1756
commit
141748788b
10
ui/jquery.effects.core.js
vendored
10
ui/jquery.effects.core.js
vendored
@ -418,15 +418,15 @@ function _normalizeArguments(effect, options, speed, callback) {
|
||||
speed = null;
|
||||
options = {};
|
||||
}
|
||||
if ($.isFunction(speed)) {
|
||||
callback = speed;
|
||||
speed = null;
|
||||
}
|
||||
if (typeof options == 'number' || $.fx.speeds[options]) {
|
||||
if (typeof options == 'number' || $.fx.speeds[options]) {
|
||||
callback = speed;
|
||||
speed = options;
|
||||
options = {};
|
||||
}
|
||||
if ($.isFunction(speed)) {
|
||||
callback = speed;
|
||||
speed = null;
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user