From ef833d2bea07cd2e979dd558eaba141f880063cb Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 25 Nov 2019 14:28:52 -0500 Subject: Use const rather than let where possible --- ext/fg/js/frontend.js | 4 ++-- ext/fg/js/source.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/fg/js') diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 16302e82..8297f54d 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -447,8 +447,8 @@ class Frontend { } getIndexOfTouch(touchList, identifier) { - for (let i in touchList) { - let t = touchList[i]; + for (const i in touchList) { + const t = touchList[i]; if (t.identifier === identifier) { return i; } diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index 886093d7..e6b991c4 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -361,7 +361,7 @@ class TextSourceElement { let consumed = 0; let content = ''; - for (let currentChar of this.content || '') { + for (const currentChar of this.content || '') { if (consumed >= length) { break; } else if (!currentChar.match(IGNORE_TEXT_PATTERN)) { -- cgit v1.2.3