Commit 789ad4f7 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: small code reduction.

parent eeab0717
...@@ -1138,16 +1138,16 @@ jQuery.extend({ ...@@ -1138,16 +1138,16 @@ jQuery.extend({
merge: function( first, second ) { merge: function( first, second ) {
// We have to loop this way because IE & Opera overwrite the length // We have to loop this way because IE & Opera overwrite the length
// expando of getElementsByTagName // expando of getElementsByTagName
var i = 0;
// Also, we need to make sure that the correct elements are being returned // Also, we need to make sure that the correct elements are being returned
// (IE returns comment nodes in a '*' query) // (IE returns comment nodes in a '*' query)
if ( jQuery.browser.msie ) { if ( jQuery.browser.msie ) {
for ( var i = 0; second[ i ]; i++ ) for ( ; second[ i ]; i++ )
if ( second[ i ].nodeType != 8 ) if ( second[ i ].nodeType != 8 )
first.push( second[ i ] ); first.push( second[ i ] );
} else } else
for ( var i = 0; second[ i ]; i++ ) for ( ; second[ i ]; i++ )
first.push( second[ i ] ); first.push( second[ i ] );
return first; return first;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment