aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-06-14 16:07:23 -0400
committerAlex Yatskov <alex@foosoft.net>2016-06-14 20:44:38 -0700
commitad617221308b04e8f26ec52d876603e7aec3a03d (patch)
tree005364d7c5485a1b470530b55f90f4e5ed8d6f4c /ext/bg/js/dictionary.js
parentcaf067883275f9b46259c2dbbf1f36aafc7e9108 (diff)
Use `let` instead of `const` in for loops.
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index cc7b507c..9ec23117 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -34,7 +34,7 @@ class Dictionary {
findTerm(term) {
let results = [];
- for (const name in this.termDicts) {
+ for (let name in this.termDicts) {
const dict = this.termDicts[name];
const indices = dict.indices[term] || [];
@@ -48,7 +48,7 @@ class Dictionary {
// TODO: Handle addons through data.
//
- for (const tag of tags) {
+ for (let tag of tags) {
if (tag.startsWith('v5') && tag !== 'v5') {
addons.push('v5');
} else if (tag.startsWith('vs-')) {
@@ -74,7 +74,7 @@ class Dictionary {
findKanji(kanji) {
const results = [];
- for (const name in this.kanjiDicts) {
+ for (let name in this.kanjiDicts) {
const def = this.kanjiDicts[name][kanji];
if (def) {
const [k, o, g] = def;