Skip to content

Commit

Permalink
Merge pull request gabrielecirulli#22 from ghoullier/master
Browse files Browse the repository at this point in the history
Use querySelector instead of getElementsByClassName
  • Loading branch information
gabrielecirulli committed Mar 12, 2014
2 parents 29e4b85 + 95a2676 commit 3dd8f3e
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 3dd8f3e

Please sign in to comment.