mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
clean up event listeners in proxy (#50)
This commit is contained in:
@@ -37,7 +37,6 @@ class Notify {
|
||||
function onClick(arg) {
|
||||
if (arg.id === this._id) {
|
||||
this.emitter.emit('click');
|
||||
arg.closeNotification();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,9 +91,9 @@ class Notify {
|
||||
//
|
||||
|
||||
destroy() {
|
||||
this.emitter.removeAllListeners();
|
||||
// allow live instance to be destroyed
|
||||
this.emitter.emit('destroy');
|
||||
this.emitter.removeAllListeners();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user