diff --git a/src/core.js b/src/core.js index 6d5c747f4..82616eaa5 100644 --- a/src/core.js +++ b/src/core.js @@ -552,18 +552,14 @@ jQuery.extend({ }, merge: function( first, second ) { - var l = second.length, + var l = +second.length, i = first.length, j = 0; - if ( typeof l === "number" ) { + if ( l ) { for ( ; j < l; j++ ) { first[ i++ ] = second[ j ]; } - } else { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } } first.length = i;