Skip to content

Commit 01dcb63

Browse files
committed
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
1 parent 9241757 commit 01dcb63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/jquery.effects.core.js

Lines changed: 5 additions & 5 deletions
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)