From e433030661ce74facba2e414ce7ae34122a2f238 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 6 Apr 2023 01:17:42 -0400 Subject: [PATCH] Avoids extra indirection --- src/eventBus.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/eventBus.ts b/src/eventBus.ts index 7d094b9..140daa9 100644 --- a/src/eventBus.ts +++ b/src/eventBus.ts @@ -59,9 +59,6 @@ const _cachedEventArgs = new Map(); - 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;