From: John Resig Date: Thu, 18 Oct 2007 00:30:37 +0000 (+0000) Subject: Added a fix for bug #1751, where the options getting overwritten for an animation... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=5421dfdea9c72598ecf1187aa03cd8d2b1e5578d;hp=80a26a326696599dad5b0bf88f8fa8e242e711e5;p=jquery.git Added a fix for bug #1751, where the options getting overwritten for an animation was causing issues. --- diff --git a/src/fx.js b/src/fx.js index a143df6..a4f4ef8 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 ) {