Bug Tracker

Changeset 5463

Show
Ignore:
Timestamp:
05/06/08 01:29:13 (8 months ago)
Author:
aflesler
Message:

jquery core: small code reduction.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r5462 r5463  
    11391139        // We have to loop this way because IE & Opera overwrite the length 
    11401140        // expando of getElementsByTagName 
    1141  
     1141        var i = 0; 
    11421142        // Also, we need to make sure that the correct elements are being returned 
    11431143        // (IE returns comment nodes in a '*' query) 
    11441144        if ( jQuery.browser.msie ) { 
    1145             for ( var i = 0; second[ i ]; i++ ) 
     1145            for ( ; second[ i ]; i++ ) 
    11461146                if ( second[ i ].nodeType != 8 ) 
    11471147                    first.push( second[ i ] ); 
    11481148 
    11491149        } else 
    1150             for ( var i = 0; second[ i ]; i++ ) 
     1150            for ( ; second[ i ]; i++ ) 
    11511151                first.push( second[ i ] ); 
    11521152