Make sure that a clone of the animate speed properties are used to avoid recursion problems. Fixes #3583.

This commit is contained in:
jeresig 2010-09-24 15:57:51 -04:00
parent e0a9615f82
commit f10057bc48

2
src/effects.js vendored
View 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,