Fixed spelling mistake, fixes #7

This commit is contained in:
Thomas Forgione 2018-08-23 13:59:52 +02:00
parent 2f909048dc
commit f3228af0ec
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class Game {
}
changeScreen(screen) {
if (this.mainSCreen !== undefined) {
if (this.mainScreen !== undefined) {
this.mainScreen.removeListeners();
}

View File

@ -45,7 +45,7 @@ class Screen {
removeListeners() {
for (let listener of this.listeners) {
console.log(document.removeElementListener(listener.type, listener.callback));
document.removeEventListener(listener.type, listener.callback);
}
}