File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1146,17 +1146,17 @@ jQuery.extend({
11461146 merge : function ( first , second ) {
11471147 // We have to loop this way because IE & Opera overwrite the length
11481148 // expando of getElementsByTagName
1149- var i = 0 ;
1149+ var i = 0 , elem , pos = first . length ;
11501150 // Also, we need to make sure that the correct elements are being returned
11511151 // (IE returns comment nodes in a '*' query)
11521152 if ( jQuery . browser . msie ) {
1153- for ( ; second [ i ] ; i ++ )
1154- if ( second [ i ] . nodeType != 8 )
1155- first . push ( second [ i ] ) ;
1153+ while ( elem = second [ i ++ ] )
1154+ if ( elem . nodeType != 8 )
1155+ first [ pos ++ ] = elem ;
11561156
11571157 } else
1158- for ( ; second [ i ] ; i ++ )
1159- first . push ( second [ i ] ) ;
1158+ while ( elem = second [ i ++ ] )
1159+ first [ pos ++ ] = elem ;
11601160
11611161 return first ;
11621162 } ,
You can’t perform that action at this time.
0 commit comments