From 5e7f70ae192fd5b1e02add5737a82891dc30726f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 30 Oct 2020 12:24:17 +0100 Subject: [PATCH] Make everything no-constant-condition clean --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 2 +- wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index f317933efd..7d3bee5ba3 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -325,7 +325,7 @@ define(["require", "exports", "tslib", "../Core", "../Dom/Change/Listener", "./S let allowScroll = false; let element = event.target; let clientHeight, scrollHeight, scrollTop; - while (true) { + for (;;) { clientHeight = element.clientHeight; scrollHeight = element.scrollHeight; if (clientHeight < scrollHeight) { diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts index 5fa7f2feda..f74b1f6302 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts @@ -391,7 +391,7 @@ const UiDialog = { let allowScroll = false; let element: HTMLElement | null = event.target as HTMLElement; let clientHeight, scrollHeight, scrollTop; - while (true) { + for (;;) { clientHeight = element.clientHeight; scrollHeight = element.scrollHeight; -- 2.20.1