From 6d7196f8034c913d5a67023fcafd2107d4a0442c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 18 Feb 2010 04:40:39 +0000 Subject: [PATCH] Effects: Properly normalizing arguments for named speeds. Fixes #5192 - 1.8rc2 Toggle speed issue. --- ui/jquery.effects.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 7656ff41a..2d0c873d4 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -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 = {}; -- 2.39.5