]> source.dussan.org Git - jquery.git/commitdiff
Make sure that a clone of the animate speed properties are used to avoid recursion...
authorjeresig <jeresig@gmail.com>
Fri, 24 Sep 2010 19:57:51 +0000 (15:57 -0400)
committerjeresig <jeresig@gmail.com>
Fri, 24 Sep 2010 19:57:51 +0000 (15:57 -0400)
src/effects.js

index f3163ebbf984f56a5c6b14c70340b671232a8564..56141bb29a783cc6f9fa1dbf6f25bec7e3f999b5 100644 (file)
@@ -248,7 +248,7 @@ jQuery.each({
 
 jQuery.extend({
        speed: function( speed, easing, fn ) {
-               var opt = speed && typeof speed === "object" ? speed : {
+               var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
                        complete: fn || !fn && easing ||
                                jQuery.isFunction( speed ) && speed,
                        duration: speed,