removed all emitter listeners when we remove the stream

This commit is contained in:
Wyatt Johnson
2017-08-03 11:33:07 +10:00
parent 15c7a7cad7
commit 325626fecf
+1 -2
View File
@@ -147,14 +147,13 @@ export default class Stream {
remove() {
// Remove the event listeners.
document.removeEventListener('click', this.handleClick.bind(this));
this.emitter.removeAllListeners();
// Remove the snackbar.
this.snackBar.remove();
// Remove the pym parent.
this.pym.remove();
}