From: John Resig Date: Wed, 10 Jan 2007 00:46:10 +0000 (+0000) Subject: Fixed a bug in jQuery.speed(), when there's no properties provided. X-Git-Tag: 1.1b~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3806202ffe1ecc85ba6213f06cc7b6f68c49695;p=jquery.git Fixed a bug in jQuery.speed(), when there's no properties provided. --- 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 };