]> source.dussan.org Git - jquery.git/commitdiff
Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes...
authorjeresig <jeresig@gmail.com>
Sat, 5 Dec 2009 19:33:40 +0000 (14:33 -0500)
committerjeresig <jeresig@gmail.com>
Sat, 5 Dec 2009 19:33:40 +0000 (14:33 -0500)
src/fx.js

index 15fce5c3a348800e05cd903a56fe1f5364928957..fa17072942242b649130e16afcfef280267eef4e 100644 (file)
--- 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,