aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-05 14:33:40 -0500
committerjeresig <jeresig@gmail.com>2009-12-05 14:33:40 -0500
commitb776e2b79a5b051fba3091b0b5057ae14950f7cc (patch)
treeb57f0b4f7005920bdeb86662cc3b151f62c699f9
parentb24da33f52f8ce536ae60a6cbffeb2f5cf02bac5 (diff)
downloadjquery-b776e2b79a5b051fba3091b0b5057ae14950f7cc.tar.gz
jquery-b776e2b79a5b051fba3091b0b5057ae14950f7cc.zip
Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes #5557.
-rw-r--r--src/fx.js2
1 files changed, 1 insertions, 1 deletions
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,