mirror of
https://github.com/wassname/talk.git
synced 2026-07-21 12:51:03 +08:00
removed all emitter listeners when we remove the stream
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user