aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-01-26 16:12:23 -0600
committerAnton M <obhvsbypqghgc@gmail.com>2011-01-27 00:23:08 +0100
commitab1d9a8a2c296a2fa31b7d15146ce115c4057fad (patch)
tree3f9361a163229e19f2e6c1d39f1ff3eedae33c1e
parentba43d37394b6018779d9a668c548e11579cd424a (diff)
downloadjquery-ab1d9a8a2c296a2fa31b7d15146ce115c4057fad.tar.gz
jquery-ab1d9a8a2c296a2fa31b7d15146ce115c4057fad.zip
Remove unneeded and confusing variable definition for better readability.
-rw-r--r--src/core.js5
1 files 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 );
}