]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: Properly normalizing arguments for named speeds.
authorScott González <scott.gonzalez@gmail.com>
Thu, 18 Feb 2010 04:40:39 +0000 (04:40 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 18 Feb 2010 04:40:39 +0000 (04:40 +0000)
Fixes #5192 - 1.8rc2 Toggle speed issue.

ui/jquery.effects.core.js

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