summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-28 21:02:51 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-28 21:02:51 -0700
commit9462bc397b45aef0034f5ef8d11294125198581b (patch)
tree2fe1eb7a56037ca1cd96237a9a85161a353433ea /ext/bg/js/dictionary.js
parent1483dd4f09d4087bb13b270083a316f8bc64b34b (diff)
Cleanup
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 4baa41c8..b7b7039c 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -28,21 +28,14 @@ class Dictionary {
}
initDb() {
+ this.entities = null;
+
this.db = new Dexie('dict');
this.db.version(1).stores({
terms: '++id,expression,reading',
entities: '++,name',
kanji: '++,character'
});
-
- return this.db;
- }
-
- loadDb() {
- this.db = null;
- this.entities = null;
-
- return this.initDb().open();
}
findTerm(term) {