Commit 5421dfde authored by John Resig's avatar John Resig

Added a fix for bug #1751, where the options getting overwritten for an...

Added a fix for bug #1751, where the options getting overwritten for an animation was causing issues.
parent 80a26a32
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment