Remove unneeded and confusing variable definition for better readability.

This commit is contained in:
gnarf 2011-01-26 16:12:23 -06:00 committed by Anton M
parent ba43d37394
commit ab1d9a8a2c

View file

@ -929,10 +929,9 @@ jQuery.extend({
if ( length > 1 ) { if ( length > 1 ) {
resolveArray = new Array( length ); resolveArray = new Array( length );
jQuery.each( args, function( index, element, args ) { jQuery.each( args, function( index, element ) {
jQuery.when( element ).then( function( value ) { jQuery.when( element ).then( function( value ) {
args = arguments; resolveArray[ index ] = arguments.length > 1 ? slice.call( arguments, 0 ) : value;
resolveArray[ index ] = args.length > 1 ? slice.call( args, 0 ) : value;
if( ! --length ) { if( ! --length ) {
deferred.resolveWith( promise, resolveArray ); deferred.resolveWith( promise, resolveArray );
} }