Effects: Properly normalizing arguments for named speeds.

Fixes #5192 - 1.8rc2 Toggle speed issue.
This commit is contained in:
Scott González 2010-02-18 04:40:39 +00:00
parent 9cabe8403e
commit 6d7196f803

View File

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