mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
argument shifting is not done correctly when the options argument is not supplied. the result is that the callback is not called. this fixes Ticket #5731 foooo
This commit is contained in:
parent
06f721b74f
commit
4be0942af0
8
ui/jquery.effects.core.js
vendored
8
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]) {
|
||||
callback = speed;
|
||||
speed = options;
|
||||
options = {};
|
||||
}
|
||||
if ($.isFunction(speed)) {
|
||||
callback = speed;
|
||||
speed = null;
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user