]> source.dussan.org Git - jquery.git/commitdiff
Remove unneeded and confusing variable definition for better readability.
authorgnarf <gnarf@gnarf.net>
Wed, 26 Jan 2011 22:12:23 +0000 (16:12 -0600)
committerAnton M <obhvsbypqghgc@gmail.com>
Wed, 26 Jan 2011 23:23:08 +0000 (00:23 +0100)
src/core.js

index 43d46e9e2f99546a16ee253a688a6c92e21d2025..422b68876640216555821acd99f25e7e098165db 100644 (file)
@@ -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 );
                                        }