diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-25 16:45:43 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-25 16:45:43 -0700 |
commit | 218db0771fae0754a50cadc1891a042112b58699 (patch) | |
tree | 00d1af89da017416a13e2a69ca97f678ef93d446 /ext/fg/js/display-frame.js | |
parent | bc2bf51a072af45ddc61a7f6b1c5cc3b94f8ad3e (diff) |
cleanup, firefox scrolling
Diffstat (limited to 'ext/fg/js/display-frame.js')
-rw-r--r-- | ext/fg/js/display-frame.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fg/js/display-frame.js b/ext/fg/js/display-frame.js index d930d325..41c2fb53 100644 --- a/ext/fg/js/display-frame.js +++ b/ext/fg/js/display-frame.js @@ -58,20 +58,20 @@ window.displayFrame = new class extends Display { onMessage(e) { const handlers = new class { - api_showTermDefs({definitions, options, context}) { + showTermDefs({definitions, options, context}) { this.showTermDefs(definitions, options, context); } - api_showKanjiDefs({definitions, options, context}) { + showKanjiDefs({definitions, options, context}) { this.showKanjiDefs(definitions, options, context); } - api_showOrphaned() { + showOrphaned() { this.showOrphaned(); } }; - const {action, params} = e.originalEvent.data, method = handlers[`api_${action}`]; + const {action, params} = e.originalEvent.data, method = handlers[action]; if (typeof(method) === 'function') { method.call(this, params); } |