clean: respect es11
This commit is contained in:
@ -26,13 +26,13 @@ export default class extends AbstractView {
|
||||
startGame() {
|
||||
if (this.game == null) {
|
||||
document.getElementById('startGameButton').innerHTML = 'Reset Game';
|
||||
this.game = new Game;
|
||||
this.game = new Game();
|
||||
}
|
||||
else {
|
||||
document.getElementById('app').removeChild(this.game.canvas);
|
||||
document.getElementById('app').removeChild(this.game.scoresDisplay);
|
||||
this.game.cleanup();
|
||||
this.game = new Game;
|
||||
this.game = new Game();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user