From 56efa71fffc28519aeed70034b2799108bee4d95 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Tue, 25 Apr 2023 11:46:53 +0700 Subject: [PATCH] chore(web): cleans up a timeout func --- web/src/app/browser/src/context/attachmentEngine.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/app/browser/src/context/attachmentEngine.ts b/web/src/app/browser/src/context/attachmentEngine.ts index e20c785f23..bef61cb002 100644 --- a/web/src/app/browser/src/context/attachmentEngine.ts +++ b/web/src/app/browser/src/context/attachmentEngine.ts @@ -807,10 +807,9 @@ export class AttachmentEngine extends EventEmitter { if(!this.keyman.util.device.touchable) { this.listInputs(); } else if(this.keyman.util.device.touchable) { // If something was added or removed, chances are it's gonna mess up our touch-based layout scheme, so let's update the touch elements. - var domManager = this; - window.setTimeout(function() { - domManager.listInputs(); - }.bind(this), 1); + window.setTimeout(() => { + this.listInputs(); + }, 1); } } }.bind(this);