From 41c74baf9971bc32d0908073c1ebbc037376ed06 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 16 Feb 2025 02:40:01 +0100 Subject: [PATCH] Refactoring: inline 'self' --- src/Logic/UIEventSource.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Logic/UIEventSource.ts b/src/Logic/UIEventSource.ts index 88b5dc953d..4b892bb714 100644 --- a/src/Logic/UIEventSource.ts +++ b/src/Logic/UIEventSource.ts @@ -626,11 +626,9 @@ class MappedStore extends Store { } private registerCallbacksToUpstream() { - const self = this - - this._unregisterFromUpstream = this._upstream.addCallback((_) => self.update()) + this._unregisterFromUpstream = this._upstream.addCallback((_) => this.update()) this._unregisterFromExtraStores = this._extraStores?.map((store) => - store?.addCallback((_) => self.update()) + store?.addCallback((_) => this.update()) ) this._callbacksAreRegistered = true }