removing event listener fixed

pull/1342/head
aniket-engg 3 years ago committed by davidzagi93@gmail.com
parent 7685ac3153
commit 374a85dc50
  1. 3
      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 () {

Loading…
Cancel
Save