Make everything no-constant-condition clean
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 11:24:17 +0000 (12:24 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 11:25:36 +0000 (12:25 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts

index f317933efd0b5e06cbb2a361f84ef5d82c3cc381..7d3bee5ba3a73734e0b8de4394d68e31c955afda 100644 (file)
@@ -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) {
index 5fa7f2fedac98dfadaa6065292a5218ef6f09d8f..f74b1f630284c2c3c735bbcd338b246c265396fc 100644 (file)
@@ -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;