Effects: Proper argument shuffling when calling show/hide/toggle without a speed.

Fixes #5269 - Show and hide effects errantly require "duration" option to fire callback.
This commit is contained in:
Scott González 2010-03-04 01:31:17 +00:00
parent 868732edac
commit 301eb30ac1

View File

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