From b776e2b79a5b051fba3091b0b5057ae14950f7cc Mon Sep 17 00:00:00 2001 From: jeresig Date: Sat, 5 Dec 2009 14:33:40 -0500 Subject: [PATCH] Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes #5557. --- src/fx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fx.js b/src/fx.js index 15fce5c3a..fa1707294 100644 --- a/src/fx.js +++ b/src/fx.js @@ -219,7 +219,7 @@ jQuery.each({ jQuery.extend({ speed: function(speed, easing, fn) { - var opt = typeof speed === "object" ? speed : { + var opt = speed && typeof speed === "object" ? speed : { complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, -- 2.39.5