From: jeresig <jeresig@gmail.com>
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-Url: http://git.asbjorn.it/?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 15fce5c..fa17072 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,