Skip to content

Commit

Permalink
Use querySelector instead of getElementsByClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoullier committed Mar 12, 2014
1 parent 29e4b85 commit 95a2676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/html_actuator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function HTMLActuator() {
this.tileContainer = document.getElementsByClassName("tile-container")[0];
this.scoreContainer = document.getElementsByClassName("score-container")[0];
this.messageContainer = document.getElementsByClassName("game-message")[0];
this.tileContainer = document.querySelector(".tile-container");
this.scoreContainer = document.querySelector(".score-container");
this.messageContainer = document.querySelector(".game-message");

this.score = 0;
}
Expand Down

0 comments on commit 95a2676

Please sign in to comment.