X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fjquery%2Fjquery.tablesorter.test.js;h=1db8c61d49a0e8cebe6920b0682e6c17478eb51a;hb=1edba8029a561919febf8b90f5df689d090665dd;hp=27d7e8daf56a3a9585172d1b52041d775302aab6;hpb=1975297654267990d686da8c64d72f5a363305d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js index 27d7e8daf5..1db8c61d49 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js @@ -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 ); } );