aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fx/fx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fx/fx.js b/src/fx/fx.js
index 30bedbfab..0ede5eea9 100644
--- a/src/fx/fx.js
+++ b/src/fx/fx.js
@@ -356,9 +356,9 @@ jQuery.fn.extend({
jQuery.extend({
speed: function(speed, easing, fn) {
- var opt = speed.constructor == Object ? speed : {
+ var opt = speed && speed.constructor == Object ? speed : {
complete: fn || !fn && easing ||
- speed.constructor == Function && speed,
+ speed && speed.constructor == Function && speed,
duration: speed,
easing: fn && easing || easing && easing.constructor != Function && easing
};