From cfa0530e581ae033b39a5e60db98d955d96569d6 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 8 Sep 2021 13:14:27 +0530 Subject: [PATCH] removing event listener fixed --- apps/remix-ide/src/app/tabs/test-tab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 95bd5d37a2..73c4c9aaef 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -74,7 +74,8 @@ module.exports = class TestTab extends ViewPlugin { onDeactivation () { this.off('filePanel', 'newTestFileCreated') this.off('filePanel', 'setWorkspace') - this.fileManager.events.removeListener('currentFileChanged', this.updateForNewCurrent) + // 'currentFileChanged' event is added more than once + this.fileManager.events.removeAllListeners('currentFileChanged') } listenToEvents () {