From ab1d9a8a2c296a2fa31b7d15146ce115c4057fad Mon Sep 17 00:00:00 2001 From: gnarf Date: Wed, 26 Jan 2011 16:12:23 -0600 Subject: [PATCH] Remove unneeded and confusing variable definition for better readability. --- src/core.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ); } -- 2.39.5