summaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-08-03 15:06:28 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2019-08-03 15:06:28 +0300
commitafc771de9fd34a7b16a6bbf8bcdc85dd758d7836 (patch)
tree7651eab807019c1e5de83f1f05c505534bc819d4 /ext/bg/js/search.js
parent0ee6d05cb15a8bc94f120c2896e7537fd969aaed (diff)
inject doc functions as dependencies
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 40bf2019..f08f22da 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -25,6 +25,8 @@ class DisplaySearch extends Display {
this.query = $('#query').on('input', this.onSearchInput.bind(this));
this.intro = $('#intro');
+ this.dependencies = {...this.dependencies, ...{docRangeFromPoint, docSentenceExtract}};
+
window.wanakana.bind(this.query.get(0));
}