diff options
author | jeresig <jeresig@gmail.com> | 2010-09-24 15:57:51 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-09-24 15:57:51 -0400 |
commit | f10057bc481753d92ebfb8dfcef5197af5d76972 (patch) | |
tree | e586a3803c2fe4b7068a4ff59ac661516ff665f0 /src | |
parent | e0a9615f82fcdad73de6db42a995eb2a5550e361 (diff) | |
download | jquery-f10057bc481753d92ebfb8dfcef5197af5d76972.tar.gz jquery-f10057bc481753d92ebfb8dfcef5197af5d76972.zip |
Make sure that a clone of the animate speed properties are used to avoid recursion problems. Fixes #3583.
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 2 |
1 files changed, 1 insertions, 1 deletions
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, |