function ensureTabDiscardsInfoTableLength() {
    let rows = tabDiscardsInfoTableBody.querySelectorAll('tr');
    if (rows.length < infos.length) {
      for (let i = rows.length; i < infos.length; ++i) {
        let row = createEmptyTabDiscardsInfoTableRow();
        row.setAttribute('data-row-index', i.toString());
        tabDiscardsInfoTableBody.appendChild(row);
      }
    } else if (rows.length > infos.length) {
      for (let i = infos.length; i < rows.length; ++i) {
        tabDiscardsInfoTableBody.removeChild(rows[i]);
      }
    }
  }
/**
   * Ensures the discards info table has the appropriate length. Decorates
   * newly created rows with a 'row-index' attribute to enable event listeners
   * to quickly determine the index of the row.
   */
Ensures the discards info table has the appropriate length. Decorates
newly created rows with a 'row-index' attribute to enable event listeners
to quickly determine the index of the row.
Ensures the discards info table has the appropriate length . Decorates newly created rows with a ' row - index ' attribute to enable event listeners to quickly determine the index of the row .
function ensureTabDiscardsInfoTableLength() {
    let rows = tabDiscardsInfoTableBody.querySelectorAll('tr');
    if (rows.length < infos.length) {
      for (let i = rows.length; i < infos.length; ++i) {
        let row = createEmptyTabDiscardsInfoTableRow();
        row.setAttribute('data-row-index', i.toString());
        tabDiscardsInfoTableBody.appendChild(row);
      }
    } else if (rows.length > infos.length) {
      for (let i = infos.length; i < rows.length; ++i) {
        tabDiscardsInfoTableBody.removeChild(rows[i]);
      }
    }
  }
function ensureTabDiscardsInfoTableLength ( ) { let rows = tabDiscardsInfoTableBody . querySelectorAll ( 'tr' ) ; if ( rows . length < infos . length ) { for ( let i = rows . length ; i < infos . length ; ++ i ) { let row = createEmptyTabDiscardsInfoTableRow ( ) ; row . setAttribute ( 'data-row-index' , i . toString ( ) ) ; tabDiscardsInfoTableBody . appendChild ( row ) ; } } else if ( rows . length > infos . length ) { for ( let i = infos . length ; i < rows . length ; ++ i ) { tabDiscardsInfoTableBody . removeChild ( rows [ i ] ) ; } } }
Ensures the discards info table has the appropriate length.
Ensures the discards info table has the appropriate length .