src/HTMLBoardRenderer.js
/**
   * Listen to events that come from the board and change the UI.
   */
Listen to events that come from the board and change the UI.
Listen to events that come from the board and change the UI .
listenToEvents() {
    this.board.on('play', this.renderPositions, this);
    this.board.on('remove', this.removePosition, this);
    this.board.on('clear', this.clear, this);
    this.board.on('winLengthChanged', this.renderPositions, this);
  }
listenToEvents ( ) { this . board . on ( 'play' , this . renderPositions , this ) ; this . board . on ( 'remove' , this . removePosition , this ) ; this . board . on ( 'clear' , this . clear , this ) ; this . board . on ( 'winLengthChanged' , this . renderPositions , this ) ; }
Listen to events that come from the board and change the UI.
Listen to events that come from the board and change the UI .