aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-28 18:46:15 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-28 18:46:15 -0800
commit8efe5b1fbf6bf1539c93f25b6b87918c1a651f00 (patch)
tree6d407c4dc5dcb6d93ad38c10f2721d5d24ddd2a3 /ext/bg/js/database.js
parentbf9925ec9cabd5a755152aa89df1f87e38d53534 (diff)
workaround for broken const in firefox
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 7dc533e3..cae96306 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 (const result of results) {
+ for (let result of results) {
result.tagMeta = this.tagMetaCache[result.dictionary] || {};
}
@@ -115,7 +115,7 @@ class Database {
}).then(() => {
return this.cacheTagMeta(dictionaries);
}).then(() => {
- for (const result of results) {
+ for (let result of results) {
result.tagMeta = this.tagMetaCache[result.dictionary] || {};
}
@@ -129,7 +129,7 @@ class Database {
}
const promises = [];
- for (const dictionary of dictionaries) {
+ for (let dictionary of dictionaries) {
if (this.tagMetaCache[dictionary]) {
continue;
}
@@ -246,7 +246,7 @@ class Database {
return this.db.dictionaries.add({title, version, revision, hasTerms, hasKanji}).then(() => {
const rows = [];
- for (const tag in tagMeta || {}) {
+ for (let tag in tagMeta || {}) {
const meta = tagMeta[tag];
const row = sanitizeTag({
name: tag,
@@ -266,7 +266,7 @@ class Database {
const termsLoaded = (title, entries, total, current) => {
const rows = [];
- for (const [expression, reading, tags, rules, score, ...glossary] of entries) {
+ for (let [expression, reading, tags, rules, score, ...glossary] of entries) {
rows.push({
expression,
reading,
@@ -287,7 +287,7 @@ class Database {
const kanjiLoaded = (title, entries, total, current) => {
const rows = [];
- for (const [character, onyomi, kunyomi, tags, ...meanings] of entries) {
+ for (let [character, onyomi, kunyomi, tags, ...meanings] of entries) {
rows.push({
character,
onyomi,