Remove unnecessary var in queue.js

This commit is contained in:
timmywil 2011-06-04 22:21:47 -04:00
parent d729ef951c
commit 5293495a5f
2 changed files with 7 additions and 8 deletions

8
src/effects.js vendored
View file

@ -178,8 +178,7 @@ jQuery.fn.extend({
opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ]; opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
// Set display property to inline-block for height/width // Set display property to inline-block for height/width
// animations on inline elements that are having width/height // animations on inline elements that are having width/height animated
// animated
if ( jQuery.css( this, "display" ) === "inline" && if ( jQuery.css( this, "display" ) === "inline" &&
jQuery.css( this, "float" ) === "none" ) { jQuery.css( this, "float" ) === "none" ) {
@ -254,7 +253,8 @@ jQuery.fn.extend({
this.each(function() { this.each(function() {
var timers = jQuery.timers, var timers = jQuery.timers,
i = timers.length; i = timers.length,
timer;
// clear marker counters if we know they won't be // clear marker counters if we know they won't be
if ( !gotoEnd ) { if ( !gotoEnd ) {
@ -269,7 +269,7 @@ jQuery.fn.extend({
timers[ i ].saveState(); timers[ i ].saveState();
} }
timers.splice(i, 1); timers.splice( i, 1 );
} }
} }
}); });

View file

@ -70,8 +70,7 @@ jQuery.extend({
type = type || "fx"; type = type || "fx";
var queue = jQuery.queue( elem, type ), var queue = jQuery.queue( elem, type ),
fn = queue.shift(), fn = queue.shift();
defer;
// If the fx queue is dequeued, always remove the progress sentinel // If the fx queue is dequeued, always remove the progress sentinel
if ( fn === "inprogress" ) { if ( fn === "inprogress" ) {
@ -86,7 +85,7 @@ jQuery.extend({
} }
fn.call(elem, function() { fn.call(elem, function() {
jQuery.dequeue(elem, type); jQuery.dequeue( elem, type );
}); });
} }
@ -123,7 +122,7 @@ jQuery.fn.extend({
// Based off of the plugin by Clint Helfers, with permission. // Based off of the plugin by Clint Helfers, with permission.
// http://blindsignals.com/index.php/2009/07/jquery-delay/ // http://blindsignals.com/index.php/2009/07/jquery-delay/
delay: function( time, type ) { delay: function( time, type ) {
time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
type = type || "fx"; type = type || "fx";
return this.queue( type, function() { return this.queue( type, function() {