Fixed spelling mistake, fixes #7
This commit is contained in:
parent
2f909048dc
commit
f3228af0ec
|
@ -15,7 +15,7 @@ class Game {
|
|||
}
|
||||
|
||||
changeScreen(screen) {
|
||||
if (this.mainSCreen !== undefined) {
|
||||
if (this.mainScreen !== undefined) {
|
||||
this.mainScreen.removeListeners();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue