aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorChris Antaki <ChrisAntaki@gmail.com>2013-11-05 21:23:04 -0800
committerRichard Gibson <richard.gibson@gmail.com>2013-12-16 12:48:46 -0500
commitb8d0d54a3c4960794a1b492957abeb56eddd1e48 (patch)
treee07b6c64faed7953e5d27c81058438738d771a93 /src/core
parentb278d8174f307fd351ae9ce6409c1806e7426e34 (diff)
downloadjquery-b8d0d54a3c4960794a1b492957abeb56eddd1e48.tar.gz
jquery-b8d0d54a3c4960794a1b492957abeb56eddd1e48.zip
Reduce size by reordering variable declarations
Close gh-1421
Diffstat (limited to 'src/core')
-rw-r--r--src/core/access.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/access.js b/src/core/access.js
index 97b410b40..b6110c8f3 100644
--- a/src/core/access.js
+++ b/src/core/access.js
@@ -6,7 +6,7 @@ define([
// The value/s can optionally be executed if it's a function
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,
- length = elems.length,
+ len = elems.length,
bulk = key == null;
// Sets many values
@@ -40,7 +40,7 @@ var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGe
}
if ( fn ) {
- for ( ; i < length; i++ ) {
+ for ( ; i < len; i++ ) {
fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
}
}
@@ -52,7 +52,7 @@ var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGe
// Gets
bulk ?
fn.call( elems ) :
- length ? fn( elems[0], key ) : emptyGet;
+ len ? fn( elems[0], key ) : emptyGet;
};
return access;