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:
kobrigo 2010-06-16 04:38:19 -07:00 committed by jzaefferer
parent 06f721b74f
commit 4be0942af0

View File

@ -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 || {};