diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-04 02:15:33 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-04 02:15:33 +0200 |
commit | 83460bcdade28fe77908d3008444a23555f09487 (patch) | |
tree | c19dad44829da15addfa99f26fca110ab76355ed /ext/mixed/js | |
parent | f4a987912a3bc7012cbfeaaa35ea94e5f97655e0 (diff) |
refactoring and optimization
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/display.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 81072957..6d992897 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -82,7 +82,7 @@ class Display { } } - onGlossaryMousedown(e) { + onGlossaryMouseDown(e) { if (Frontend.isMouseButton('primary', e)) { this.clickScanPrevent = false; } @@ -92,7 +92,7 @@ class Display { this.clickScanPrevent = true; } - onGlossaryMouseup(e) { + onGlossaryMouseUp(e) { if (!this.clickScanPrevent && Frontend.isMouseButton('primary', e)) { this.onTermLookup(e); } @@ -269,8 +269,8 @@ class Display { this.addEventListeners('.kanji-link', 'click', this.onKanjiLookup.bind(this)); this.addEventListeners('.source-term', 'click', this.onSourceTermView.bind(this)); if (this.options.scanning.enablePopupSearch) { - this.addEventListeners('.glossary-item', 'mouseup', this.onGlossaryMouseup.bind(this)); - this.addEventListeners('.glossary-item', 'mousedown', this.onGlossaryMousedown.bind(this)); + this.addEventListeners('.glossary-item', 'mouseup', this.onGlossaryMouseUp.bind(this)); + this.addEventListeners('.glossary-item', 'mousedown', this.onGlossaryMouseDown.bind(this)); this.addEventListeners('.glossary-item', 'mousemove', this.onGlossaryMouseMove.bind(this)); } } else { |