From 99463a7bf0daabf2e14280fe754cbadf9011878f Mon Sep 17 00:00:00 2001 From: Bui Date: Wed, 2 Jan 2019 04:26:24 +0000 Subject: [PATCH] fix 2P breakage --- public/src/js/view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/js/view.js b/public/src/js/view.js index 6c14b62..3f3ad97 100644 --- a/public/src/js/view.js +++ b/public/src/js/view.js @@ -1704,11 +1704,12 @@ } if(!this.multiplayer){ pageEvents.remove(this.canvas, "mousedown") + this.songBg.parentNode.removeChild(this.songBg) + this.songStage.parentNode.removeChild(this.songStage) } pageEvents.mouseRemove(this) this.donBg.parentNode.removeChild(this.donBg) - this.songBg.parentNode.removeChild(this.songBg) - this.songStage.parentNode.removeChild(this.songStage) + delete this.donBg delete this.songBg delete this.songStage