aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-02-26 11:12:54 -0800
committerAlex Yatskov <alex@foosoft.net>2017-02-26 11:12:54 -0800
commit0d2e9be0cebe6d8351d1cb7d6bbcc59b75d708ab (patch)
tree1296d60c54a7b1259c4603b9fb89c46904e71239 /ext/bg/js/database.js
parent32f95e59a9c5612d2b5658ea8a70b55ec17cca18 (diff)
wip
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 3b2bcfcb..31573065 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -87,7 +87,7 @@ class Database {
}).then(() => {
return this.cacheTagMeta(dictionaries);
}).then(() => {
- for (let result of results) {
+ for (const result of results) {
result.tagMeta = this.tagMetaCache[result.dictionary] || {};
}
@@ -115,7 +115,7 @@ class Database {
}).then(() => {
return this.cacheTagMeta(dictionaries);
}).then(() => {
- for (let result of results) {
+ for (const result of results) {
result.tagMeta = this.tagMetaCache[result.dictionary] || {};
}
@@ -129,7 +129,7 @@ class Database {
}
const promises = [];
- for (let dictionary of dictionaries) {
+ for (const dictionary of dictionaries) {
if (this.tagMetaCache[dictionary]) {
continue;
}
@@ -170,7 +170,7 @@ class Database {
return this.db.dictionaries.add({title, version, revision, hasTerms, hasKanji}).then(() => {
const rows = [];
- for (let tag in tagMeta || {}) {
+ for (const tag in tagMeta || {}) {
const meta = tagMeta[tag];
const row = sanitizeTag({
name: tag,
@@ -190,7 +190,7 @@ class Database {
const termsLoaded = (title, entries, total, current) => {
const rows = [];
- for (let [expression, reading, tags, rules, score, ...glossary] of entries) {
+ for (const [expression, reading, tags, rules, score, ...glossary] of entries) {
rows.push({
expression,
reading,
@@ -211,7 +211,7 @@ class Database {
const kanjiLoaded = (title, entries, total, current) => {
const rows = [];
- for (let [character, onyomi, kunyomi, tags, ...meanings] of entries) {
+ for (const [character, onyomi, kunyomi, tags, ...meanings] of entries) {
rows.push({
character,
onyomi,