X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fjquery%2Fjquery.tablesorter.test.js;h=23ef26f6f6efbd20901eb42dc624ae56bb727000;hp=27d7e8daf56a3a9585172d1b52041d775302aab6;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hpb=5256bb8ce2da1390f84ef535d990129eebd74fd2 diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js index 27d7e8daf5..23ef26f6f6 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js @@ -130,7 +130,7 @@ [ '$ 1.50' ], [ '$ 3.00' ], [ '$3.50' ], - // Comma's sort after dots + // Commas sort after dots // Not intentional but test to detect changes [ '€ 2,99' ] ], @@ -238,7 +238,7 @@ $tbody = $table.find( 'tbody' ), $tr = $( '' ); - $.each( header, function ( i, str ) { + header.forEach( function ( str ) { var $th = $( '' ); $th.text( str ).appendTo( $tr ); } ); @@ -247,7 +247,7 @@ for ( i = 0; i < data.length; i++ ) { $tr = $( '' ); // eslint-disable-next-line no-loop-func - $.each( data[ i ], function ( j, str ) { + data[ i ].forEach( function ( str ) { var $td = $( '' ); $td.text( str ).appendTo( $tr ); } );