From 6de5275687cabf1016649899407c9cfb26d4ed70 Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 10 Jan 2007 01:06:22 +0000 Subject: [PATCH] More jQuery.speed() fixes. --- src/fx/fx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fx/fx.js b/src/fx/fx.js index 0ede5eea9..d83bf0dd4 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -363,7 +363,7 @@ jQuery.extend({ easing: fn && easing || easing && easing.constructor != Function && easing }; - opt.duration = (opt.duration.constructor == Number ? + opt.duration = (opt.duration && opt.duration.constructor == Number ? opt.duration : { slow: 600, fast: 200 }[opt.duration]) || 400; -- 2.39.5