git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unneeded and confusing variable definition for better readability.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
520db45
..
422b688
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-26,9
+26,6
@@
var jQuery = function( selector, context ) {
trimLeft = /^\s+/,
trimRight = /\s+$/,
trimLeft = /^\s+/,
trimRight = /\s+$/,
- // Check for non-word characters
- rnonword = /\W/,
-
// Check for digits
rdigit = /\d/,
// Check for digits
rdigit = /\d/,
@@
-932,10
+929,9
@@
jQuery.extend({
if ( length > 1 ) {
resolveArray = new Array( length );
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 ) {
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 );
}
if( ! --length ) {
deferred.resolveWith( promise, resolveArray );
}