aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-09-03 01:24:01 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-09-03 02:01:53 -0400
commitf66d53c85643e703a8e37d9ca9375dd386a60cda (patch)
treedc562dc50c54a2a1231aa205947fde34226818b2 /src/core.js
parentc75c9a8ebb5d2483daa68bec799e0d770083a811 (diff)
downloadjquery-f66d53c85643e703a8e37d9ca9375dd386a60cda.tar.gz
jquery-f66d53c85643e703a8e37d9ca9375dd386a60cda.zip
Ref #14313: Further code and test improvements
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core.js b/src/core.js
index 82616eaa5..0eef72311 100644
--- a/src/core.js
+++ b/src/core.js
@@ -552,14 +552,12 @@ jQuery.extend({
},
merge: function( first, second ) {
- var l = +second.length,
- i = first.length,
- j = 0;
+ var len = +second.length,
+ j = 0,
+ i = first.length;
- if ( l ) {
- for ( ; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
+ for ( ; j < len; j++ ) {
+ first[ i++ ] = second[ j ];
}
first.length = i;