perf: add eventbus unmount in more places and optimise stats tab

This commit is contained in:
David Ralph
2021-08-20 22:06:40 +01:00
parent afcead634b
commit ef2f666ccf
12 changed files with 26 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ export default class EventBus {
}));
}
static remove(event, callback) {
static off(event, callback) {
document.removeEventListener(event, callback);
}
}