From: jeresig Date: Fri, 24 Sep 2010 19:57:51 +0000 (-0400) Subject: Make sure that a clone of the animate speed properties are used to avoid recursion... X-Git-Tag: 1.4.3rc1~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f10057bc481753d92ebfb8dfcef5197af5d76972;p=jquery.git Make sure that a clone of the animate speed properties are used to avoid recursion problems. Fixes #3583. --- diff --git a/src/effects.js b/src/effects.js index f3163ebbf..56141bb29 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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,