Fixed argument shifting for effects. Fixes #5731 - hide and show called with ommiting the options in parameters does not call the callback.

This commit is contained in:
kobrigo 2010-06-16 04:38:19 -07:00 committed by Scott González
parent bf947d1756
commit 141748788b

View File

@ -418,15 +418,15 @@ function _normalizeArguments(effect, options, speed, callback) {
speed = null;
options = {};
}
if ($.isFunction(speed)) {
callback = speed;
speed = null;
}
if (typeof options == 'number' || $.fx.speeds[options]) {
callback = speed;
speed = options;
options = {};
}
if ($.isFunction(speed)) {
callback = speed;
speed = null;
}
options = options || {};