summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-06 17:10:31 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-06 17:10:31 -0800
commitfd6622400f64b2d568d38bde72f9fd75f8d06beb (patch)
tree35c7772acc0b37e56196138207bf4e73a5061d5d /ext/bg/js/dictionary.js
parent5172155c7813965ca8f896940fa30e613f08ebac (diff)
Templates
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 5859350b..008bc483 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -131,7 +131,7 @@ class Dictionary {
});
}
- getNames() {
+ getInfo() {
if (this.db === null) {
return Promise.reject('database not initialized');
}
@@ -144,8 +144,8 @@ class Dictionary {
return Promise.reject('database not initialized');
}
- const indexLoaded = (dictionary, version, entities) => {
- return this.db.dictionaries.add({dictionary, version}).then(() => {
+ const indexLoaded = (dictionary, version, entities, hasTerms, hasKanji) => {
+ return this.db.dictionaries.add({dictionary, version, hasTerms, hasKanji}).then(() => {
this.entities = entities || {};
const rows = [];
@@ -161,7 +161,7 @@ class Dictionary {
});
};
- const termsLoaded = (dictionary, version, entries, total, current) => {
+ const termsLoaded = (dictionary, entries, total, current) => {
const rows = [];
for (const [expression, reading, tags, ...glossary] of entries) {
rows.push({
@@ -180,7 +180,7 @@ class Dictionary {
});
};
- const kanjiLoaded = (dictionary, version, entries, total, current) => {
+ const kanjiLoaded = (dictionary, entries, total, current) => {
const rows = [];
for (const [character, onyomi, kunyomi, tags, ...meanings] of entries) {
rows.push({