aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/handlebars.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-03 07:20:02 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-03 07:20:02 +0300
commit69ad4a7c9b1f859733909a75534e2005a9f56178 (patch)
tree93cec595a2e8183a95fc362b5551e2e68cefc9d8 /ext/bg/js/handlebars.js
parent3b664dd908b94e1306a211e7c8b9cde74694c018 (diff)
merged mode: implement missing stuff, refactoring
- use correct tags - indicate popular and rare terms - indicate definitions restricted to specific terms - frequencies (Innocent Corpus)
Diffstat (limited to 'ext/bg/js/handlebars.js')
-rw-r--r--ext/bg/js/handlebars.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/bg/js/handlebars.js b/ext/bg/js/handlebars.js
index 08304d43..66d5fa2b 100644
--- a/ext/bg/js/handlebars.js
+++ b/ext/bg/js/handlebars.js
@@ -71,16 +71,6 @@ function handlebarsKanjiLinks(options) {
return result;
}
-function handlebarsExpressions(options) {
- const definition = options.fn(this);
- return definition.expression;
-}
-
-function handlebarsReadings(options) {
- const definition = options.fn(this);
- return definition.reading;
-}
-
function handlebarsMultiLine(options) {
return options.fn(this).split('\n').join('<br>');
}
@@ -93,8 +83,6 @@ function handlebarsRegisterHelpers() {
Handlebars.registerHelper('furiganaPlain', handlebarsFuriganaPlain);
Handlebars.registerHelper('kanjiLinks', handlebarsKanjiLinks);
Handlebars.registerHelper('multiLine', handlebarsMultiLine);
- Handlebars.registerHelper('expressions', handlebarsExpressions);
- Handlebars.registerHelper('readings', handlebarsReadings);
}
}