You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2020/07/08 18:52:52 UTC
[myfaces-tobago] branch master updated: chore: use window for
clearTimeout instead of global
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new 516726b chore: use window for clearTimeout instead of global
516726b is described below
commit 516726be671b97a477dce48847e96b55d6b4a3f6
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Jul 8 20:52:41 2020 +0200
chore: use window for clearTimeout instead of global
issue: TOBAGO-1633: TS refactoring
---
tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-suggest.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ class Suggest extends HTMLElement {
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;