]> source.dussan.org Git - jquery.git/commitdiff
Added a fix for bug #1751, where the options getting overwritten for an animation...
authorJohn Resig <jeresig@gmail.com>
Thu, 18 Oct 2007 00:30:37 +0000 (00:30 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 18 Oct 2007 00:30:37 +0000 (00:30 +0000)
src/fx.js

index a143df6835642bf9cea14749b7af0f8a963e824e..a4f4ef875b0de8243b59bb39180a09485d212628 100644 (file)
--- 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 ) {