Navigation Menu

Skip to content

Commit

Permalink
Removed an unneeded variable. Closes gh-1321.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrycojones authored and markelog committed Aug 7, 2013
1 parent 410cf4e commit 3484a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Expand Up @@ -171,3 +171,4 @@ Jason Bedard <jason+jquery@jbedard.ca>
Kyle Robinson Young <kyle@dontkry.com> Kyle Robinson Young <kyle@dontkry.com>
Chris Talkington <chris@talkingtontech.com> Chris Talkington <chris@talkingtontech.com>
Jason Merino <jasonmerino@gmail.com> Jason Merino <jasonmerino@gmail.com>
Terry Jones <terry@jon.es>
5 changes: 2 additions & 3 deletions src/deferred.js
Expand Up @@ -20,8 +20,7 @@ jQuery.extend({
var fns = arguments; var fns = arguments;
return jQuery.Deferred(function( newDefer ) { return jQuery.Deferred(function( newDefer ) {
jQuery.each( tuples, function( i, tuple ) { jQuery.each( tuples, function( i, tuple ) {
var action = tuple[ 0 ], var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
// deferred[ done | fail | progress ] for forwarding actions to newDefer // deferred[ done | fail | progress ] for forwarding actions to newDefer
deferred[ tuple[1] ](function() { deferred[ tuple[1] ](function() {
var returned = fn && fn.apply( this, arguments ); var returned = fn && fn.apply( this, arguments );
Expand All @@ -31,7 +30,7 @@ jQuery.extend({
.fail( newDefer.reject ) .fail( newDefer.reject )
.progress( newDefer.notify ); .progress( newDefer.notify );
} else { } else {
newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
} }
}); });
}); });
Expand Down

0 comments on commit 3484a68

Please sign in to comment.