From: gnarf Date: Wed, 26 Jan 2011 22:12:23 +0000 (-0600) Subject: Remove unneeded and confusing variable definition for better readability. X-Git-Tag: 1.5~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab1d9a8a2c296a2fa31b7d15146ce115c4057fad;p=jquery.git Remove unneeded and confusing variable definition for better readability. --- diff --git a/src/core.js b/src/core.js index 43d46e9e2..422b68876 100644 --- a/src/core.js +++ b/src/core.js @@ -929,10 +929,9 @@ jQuery.extend({ if ( length > 1 ) { resolveArray = new Array( length ); - jQuery.each( args, function( index, element, args ) { + jQuery.each( args, function( index, element ) { jQuery.when( element ).then( function( value ) { - args = arguments; - resolveArray[ index ] = args.length > 1 ? slice.call( args, 0 ) : value; + resolveArray[ index ] = arguments.length > 1 ? slice.call( arguments, 0 ) : value; if( ! --length ) { deferred.resolveWith( promise, resolveArray ); }