diff options
author | John Resig <jeresig@gmail.com> | 2007-01-10 00:46:10 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-10 00:46:10 +0000 |
commit | a3806202ffe1ecc85ba6213f06cc7b6f68c49695 (patch) | |
tree | 12825f6158f4078a2bff04b207affe492cea4025 | |
parent | 2ad5faf3a1dde0714583cd7ea7e9a40de0dca9ad (diff) | |
download | jquery-a3806202ffe1ecc85ba6213f06cc7b6f68c49695.tar.gz jquery-a3806202ffe1ecc85ba6213f06cc7b6f68c49695.zip |
Fixed a bug in jQuery.speed(), when there's no properties provided.
-rw-r--r-- | src/fx/fx.js | 4 |
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 }; |