dist/wolfcage.dev.js
// Change the background color of the inactive cells
Change the background color of the inactive cells
Change the background color of the inactive cells
_changeCellInactiveBackgroundColor(hexColor) {
    var cell, cellsElems, i, len, results;
    this.BUS.set('board.cell.style.inactiveBackgroundColor', hexColor);
    cellsElems = document.querySelectorAll('.' + DOM.getClass('BOARD', 'CELL_BASE_CLASS'));
    results = [];
    for (i = 0, len = cellsElems.length; i < len; i++) {
      cell = cellsElems[i];
      if (!cell.classList.contains(DOM.getClass('BOARD', 'CELL_ACTIVE_CLASS'))) {
        results.push(cell.style.backgroundColor = hexColor);
      } else {
        results.push(void 0);
      }
    }
    return results;
  }
_changeCellInactiveBackgroundColor ( hexColor ) { var cell , cellsElems , i , len , results ; this . BUS . set ( 'board.cell.style.inactiveBackgroundColor' , hexColor ) ; cellsElems = document . querySelectorAll ( '.' + DOM . getClass ( 'BOARD' , 'CELL_BASE_CLASS' ) ) ; results = [ ] ; for ( i = 0 , len = cellsElems . length ; i < len ; i ++ ) { cell = cellsElems [ i ] ; if ( ! cell . classList . contains ( DOM . getClass ( 'BOARD' , 'CELL_ACTIVE_CLASS' ) ) ) { results . push ( cell . style . backgroundColor = hexColor ) ; } else { results . push ( void 0 ) ; } } return results ; }
Change the background color of the inactive cells
Change the background color of the inactive cells