Removes unnecessary destroy methods
This commit is contained in:
parent
4e5077364e
commit
a1e1c5d185
19 changed files with 34 additions and 214 deletions
|
|
@ -174,17 +174,6 @@ export class EventBus implements IEventBus {
|
|||
setDebug(enabled: boolean): void {
|
||||
this.debug = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up all tracked listeners
|
||||
*/
|
||||
destroy(): void {
|
||||
for (const listener of this.listeners) {
|
||||
document.removeEventListener(listener.eventType, listener.handler);
|
||||
}
|
||||
this.listeners.clear();
|
||||
this.eventLog = [];
|
||||
}
|
||||
}
|
||||
|
||||
// Create singleton instance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue