Browse Source

Avoids extra indirection

main
Eric Amodio 1 year ago
parent
commit
e433030661
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/eventBus.ts

+ 1
- 4
src/eventBus.ts View File

@ -59,9 +59,6 @@ const _cachedEventArgs = new Map
export class EventBus implements Disposable {
private readonly _emitter = new EventEmitter<EventBusEvent>();
private get event() {
return this._emitter.event;
}
dispose() {
this._emitter.dispose();
@ -92,7 +89,7 @@ export class EventBus implements Disposable {
thisArgs?: unknown,
disposables?: Disposable[],
) {
return this.event(
return this._emitter.event(
// eslint-disable-next-line prefer-arrow-callback
function (e) {
if (name !== e.name) return;

Loading…
Cancel
Save