// Loop through all the dom cells of the thead
$tableRows.each( function ( rowIndex, row ) {
- // eslint-disable-next-line no-restricted-properties
+ // eslint-disable-next-line jquery/no-each-util
$.each( row.cells, function ( columnIndex, cell ) {
var matrixRowIndex,
matrixColumnIndex;
function setHeadersCss( table, $headers, list, css, msg, columnToHeader ) {
var i, len;
// Remove all header information and reset titles to default message
- $headers.removeClass( css[ 0 ] ).removeClass( css[ 1 ] ).attr( 'title', msg[ 1 ] );
+ $headers.removeClass( css ).attr( 'title', msg[ 1 ] );
for ( i = 0, len = list.length; i < len; i++ ) {
$headers
function convertSortList( sortObjects ) {
var sortList = [];
sortObjects.forEach( function ( sortObject ) {
- // eslint-disable-next-line no-restricted-properties
+ // eslint-disable-next-line jquery/no-each-util
$.each( sortObject, function ( columnIndex, order ) {
var orderIndex = ( order === 'desc' ) ? 1 : 0;
sortList.push( [ parseInt( columnIndex, 10 ), orderIndex ] );