commit | 516726be671b97a477dce48847e96b55d6b4a3f6 | [log] [tgz] |
---|---|---|
author | Udo Schnurpfeil <udo.schnurpfeil@irian.eu> | Wed Jul 08 20:52:41 2020 +0200 |
committer | Udo Schnurpfeil <udo.schnurpfeil@irian.eu> | Wed Jul 08 20:52:41 2020 +0200 |
tree | f9d956da49df09ec1681a1da2f1ce3f78895fccb | |
parent | be4ac82cc28c9dc72ea0ab3705464fbb41f02ca1 [diff] |
chore: use window for clearTimeout instead of global issue: TOBAGO-1633: TS refactoring
diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts index f935664..0dabb2e 100644 --- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts +++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts
@@ -133,7 +133,7 @@ if (suggest.update) { if (params.filter.length >= suggest.minChars) { if (Suggest.timeout) { - clearTimeout(Suggest.timeout); + window.clearTimeout(Suggest.timeout); } Suggest.timeout = window.setTimeout(function (): void { Suggest.callback = callback;