Permalink
Browse files

Remove unneeded and confusing variable definition for better readabil…

…ity.
  • Loading branch information...
gnarf authored and jitter committed Jan 26, 2011
1 parent ba43d37 commit ab1d9a8a2c296a2fa31b7d15146ce115c4057fad
Showing with 2 additions and 3 deletions.
  1. +2 −3 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 );
}

0 comments on commit ab1d9a8

Please sign in to comment.