From: jeresig Date: Sat, 5 Dec 2009 19:33:40 +0000 (-0500) Subject: Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes... X-Git-Tag: 1.4a2~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b776e2b79a5b051fba3091b0b5057ae14950f7cc;p=jquery.git Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes #5557. --- 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,