mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: small code reduction.
This commit is contained in:
parent
eeab071790
commit
789ad4f769
@ -1138,16 +1138,16 @@ jQuery.extend({
|
||||
merge: function( first, second ) {
|
||||
// We have to loop this way because IE & Opera overwrite the length
|
||||
// expando of getElementsByTagName
|
||||
|
||||
var i = 0;
|
||||
// Also, we need to make sure that the correct elements are being returned
|
||||
// (IE returns comment nodes in a '*' query)
|
||||
if ( jQuery.browser.msie ) {
|
||||
for ( var i = 0; second[ i ]; i++ )
|
||||
for ( ; second[ i ]; i++ )
|
||||
if ( second[ i ].nodeType != 8 )
|
||||
first.push( second[ i ] );
|
||||
|
||||
} else
|
||||
for ( var i = 0; second[ i ]; i++ )
|
||||
for ( ; second[ i ]; i++ )
|
||||
first.push( second[ i ] );
|
||||
|
||||
return first;
|
||||
|
Loading…
Reference in New Issue
Block a user