Skip to content

Commit 1417487

Browse files
kobrigoscottgonzalez
authored andcommitted
Fixed argument shifting for effects. Fixes #5731 - hide and show called with ommiting the options in parameters does not call the callback.
1 parent bf947d1 commit 1417487

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/jquery.effects.core.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -418,15 +418,15 @@ function _normalizeArguments(effect, options, speed, callback) {
418418
speed = null;
419419
options = {};
420420
}
421-
if ($.isFunction(speed)) {
422-
callback = speed;
423-
speed = null;
424-
}
425-
if (typeof options == 'number' || $.fx.speeds[options]) {
421+
if (typeof options == 'number' || $.fx.speeds[options]) {
426422
callback = speed;
427423
speed = options;
428424
options = {};
429425
}
426+
if ($.isFunction(speed)) {
427+
callback = speed;
428+
speed = null;
429+
}
430430

431431
options = options || {};
432432

0 commit comments

Comments
 (0)