Skip to content

Commit

Permalink
Make sure that a clone of the animate speed properties are used to av…
Browse files Browse the repository at this point in the history
…oid recursion problems. Fixes #3583.
  • Loading branch information
jeresig committed Sep 24, 2010
1 parent e0a9615 commit f10057b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects.js
Expand Up @@ -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,
Expand Down

0 comments on commit f10057b

Please sign in to comment.