mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removed an unneeded variable. Closes gh-1321.
This commit is contained in:
parent
410cf4ee6b
commit
3484a68c16
@ -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>
|
||||||
|
@ -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 );
|
||||||
@ -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 );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user