mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Effects: Proper argument shuffling when calling show/hide/toggle without a speed.
Fixes #5269 - Show and hide effects errantly require "duration" option to fire callback.
This commit is contained in:
parent
868732edac
commit
301eb30ac1
4
ui/jquery.effects.core.js
vendored
4
ui/jquery.effects.core.js
vendored
@ -418,6 +418,10 @@ function _normalizeArguments(effect, options, speed, callback) {
|
|||||||
speed = null;
|
speed = null;
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
if ($.isFunction(speed)) {
|
||||||
|
callback = speed;
|
||||||
|
speed = null;
|
||||||
|
}
|
||||||
if (typeof options == 'number' || $.fx.speeds[options]) {
|
if (typeof options == 'number' || $.fx.speeds[options]) {
|
||||||
callback = speed;
|
callback = speed;
|
||||||
speed = options;
|
speed = options;
|
||||||
|
Loading…
Reference in New Issue
Block a user