aboutsummaryrefslogtreecommitdiff
path: root/ext/js/app/popup-factory.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-20 00:18:55 -0500
committerGitHub <noreply@github.com>2023-12-20 05:18:55 +0000
commit3c226215419ca815712e9568f7d871a96f5ff1cf (patch)
tree8bfe561a0d36589860b64c1758c2e29e92e7e3f4 /ext/js/app/popup-factory.js
parente0e29dc1aa0965b3e0fb97de64a27c2b695e068b (diff)
Simplify message handlers (#396)
Diffstat (limited to 'ext/js/app/popup-factory.js')
-rw-r--r--ext/js/app/popup-factory.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/ext/js/app/popup-factory.js b/ext/js/app/popup-factory.js
index 41984841..184a55ca 100644
--- a/ext/js/app/popup-factory.js
+++ b/ext/js/app/popup-factory.js
@@ -49,21 +49,21 @@ export class PopupFactory {
this._frameOffsetForwarder.prepare();
/* eslint-disable no-multi-spaces */
yomitan.crossFrame.registerHandlers([
- ['PopupFactory.getOrCreatePopup', {async: true, handler: this._onApiGetOrCreatePopup.bind(this)}],
- ['PopupFactory.setOptionsContext', {async: true, handler: this._onApiSetOptionsContext.bind(this)}],
- ['PopupFactory.hide', {async: true, handler: this._onApiHide.bind(this)}],
- ['PopupFactory.isVisible', {async: true, handler: this._onApiIsVisibleAsync.bind(this)}],
- ['PopupFactory.setVisibleOverride', {async: true, handler: this._onApiSetVisibleOverride.bind(this)}],
- ['PopupFactory.clearVisibleOverride', {async: true, handler: this._onApiClearVisibleOverride.bind(this)}],
- ['PopupFactory.containsPoint', {async: true, handler: this._onApiContainsPoint.bind(this)}],
- ['PopupFactory.showContent', {async: true, handler: this._onApiShowContent.bind(this)}],
- ['PopupFactory.setCustomCss', {async: true, handler: this._onApiSetCustomCss.bind(this)}],
- ['PopupFactory.clearAutoPlayTimer', {async: true, handler: this._onApiClearAutoPlayTimer.bind(this)}],
- ['PopupFactory.setContentScale', {async: true, handler: this._onApiSetContentScale.bind(this)}],
- ['PopupFactory.updateTheme', {async: true, handler: this._onApiUpdateTheme.bind(this)}],
- ['PopupFactory.setCustomOuterCss', {async: true, handler: this._onApiSetCustomOuterCss.bind(this)}],
- ['PopupFactory.getFrameSize', {async: true, handler: this._onApiGetFrameSize.bind(this)}],
- ['PopupFactory.setFrameSize', {async: true, handler: this._onApiSetFrameSize.bind(this)}]
+ ['PopupFactory.getOrCreatePopup', this._onApiGetOrCreatePopup.bind(this)],
+ ['PopupFactory.setOptionsContext', this._onApiSetOptionsContext.bind(this)],
+ ['PopupFactory.hide', this._onApiHide.bind(this)],
+ ['PopupFactory.isVisible', this._onApiIsVisibleAsync.bind(this)],
+ ['PopupFactory.setVisibleOverride', this._onApiSetVisibleOverride.bind(this)],
+ ['PopupFactory.clearVisibleOverride', this._onApiClearVisibleOverride.bind(this)],
+ ['PopupFactory.containsPoint', this._onApiContainsPoint.bind(this)],
+ ['PopupFactory.showContent', this._onApiShowContent.bind(this)],
+ ['PopupFactory.setCustomCss', this._onApiSetCustomCss.bind(this)],
+ ['PopupFactory.clearAutoPlayTimer', this._onApiClearAutoPlayTimer.bind(this)],
+ ['PopupFactory.setContentScale', this._onApiSetContentScale.bind(this)],
+ ['PopupFactory.updateTheme', this._onApiUpdateTheme.bind(this)],
+ ['PopupFactory.setCustomOuterCss', this._onApiSetCustomOuterCss.bind(this)],
+ ['PopupFactory.getFrameSize', this._onApiGetFrameSize.bind(this)],
+ ['PopupFactory.setFrameSize', this._onApiSetFrameSize.bind(this)]
]);
/* eslint-enable no-multi-spaces */
}