From 5421dfdea9c72598ecf1187aa03cd8d2b1e5578d Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 18 Oct 2007 00:30:37 +0000 Subject: [PATCH] Added a fix for bug #1751, where the options getting overwritten for an animation was causing issues. --- src/fx.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fx.js b/src/fx.js index a143df68..a4f4ef87 100644 --- a/src/fx.js +++ b/src/fx.js @@ -66,10 +66,10 @@ jQuery.fn.extend({ }, animate: function( prop, speed, easing, callback ) { - var opt = jQuery.speed(speed, easing, callback); + var optall = jQuery.speed(speed, easing, callback); - return this[ opt.queue === false ? "each" : "queue" ](function(){ - opt = jQuery.extend({}, opt); + return this[ optall.queue === false ? "each" : "queue" ](function(){ + var opt = jQuery.extend({}, optall); var hidden = jQuery(this).is(":hidden"), self = this; for ( var p in prop ) {