Skip to content

Commit

Permalink
argument shifting is not done correctly when the options argument is …
Browse files Browse the repository at this point in the history
…not supplied. the result is that the callback is not called. this fixes Ticket #5731 foooo
  • Loading branch information
kobrigo authored and jzaefferer committed Jul 16, 2010
1 parent 06f721b commit 4be0942
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/jquery.effects.core.js
Expand Up @@ -418,15 +418,15 @@ function _normalizeArguments(effect, options, speed, callback) {
speed = null; speed = null;
options = {}; options = {};
} }
if ($.isFunction(speed)) { if (typeof options == 'number' || $.fx.speeds[options]) {
callback = speed;
speed = null;
}
if (typeof options == 'number' || $.fx.speeds[options]) {
callback = speed; callback = speed;
speed = options; speed = options;
options = {}; options = {};
} }
if ($.isFunction(speed)) {
callback = speed;
speed = null;
}


options = options || {}; options = options || {};


Expand Down

1 comment on commit 4be0942

@scottgonzalez
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kobrigo Can you please sign our CLA?

Please sign in to comment.