summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-13 17:28:44 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-13 17:28:44 -0700
commitc198a0f91942b8016b272c8a5fad609c1ff18ef1 (patch)
tree5863420354c532c4f20657945c50fd0efc7c1ee0 /ext/bg
parent972b945b4cf37b421b53086ce592f385ebb83a35 (diff)
Bugfix
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/dictionary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 185aaee2..366692b0 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -32,13 +32,13 @@ class Dictionary {
}
findTerm(term) {
- const results = [];
+ let results = [];
for (const name in this.termDicts) {
const dict = this.termDicts[name];
const indices = dict.indices[term] || [];
- results.push(
+ results = results.concat(
indices.map(index => {
const [e, r, t, ...g] = dict.defs[index];
return {id: index, expression: e, reading: r, glossary: g.join('; '), tags: t.split(' ')};