Ref #14313: Further code and test improvements

This commit is contained in:
Richard Gibson
2013-09-03 01:24:01 -04:00
parent c75c9a8ebb
commit f66d53c856
2 changed files with 57 additions and 19 deletions

View File

@@ -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;