mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 22:55:08 -05:00
Ref #14313: Further code and test improvements
This commit is contained in:
12
src/core.js
12
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;
|
||||
|
||||
Reference in New Issue
Block a user