mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Make sure that a clone of the animate speed properties are used to avoid recursion problems. Fixes #3583.
This commit is contained in:
parent
e0a9615f82
commit
f10057bc48
2
src/effects.js
vendored
2
src/effects.js
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user