From f10057bc481753d92ebfb8dfcef5197af5d76972 Mon Sep 17 00:00:00 2001 From: jeresig Date: Fri, 24 Sep 2010 15:57:51 -0400 Subject: [PATCH] Make sure that a clone of the animate speed properties are used to avoid recursion problems. Fixes #3583. --- src/effects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,