aboutsummaryrefslogtreecommitdiff
path: root/ext/js/app/popup-window.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-11-21 12:34:57 -0500
committerGitHub <noreply@github.com>2021-11-21 12:34:57 -0500
commit36967b18397dc7f6414d81584ea37f364195b164 (patch)
tree80d5bf157b2887a640b9e6dce3fb5403cae4a35f /ext/js/app/popup-window.js
parent3c798ae36d1181a57de59f03bcf10d3bf7fc9577 (diff)
General refactoring (#2016)
* Remove // Public comments * Fix errors * Remove source parameter from Popup*.setOptionsContext
Diffstat (limited to 'ext/js/app/popup-window.js')
-rw-r--r--ext/js/app/popup-window.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/ext/js/app/popup-window.js b/ext/js/app/popup-window.js
index 61c627b8..8f1a8355 100644
--- a/ext/js/app/popup-window.js
+++ b/ext/js/app/popup-window.js
@@ -38,8 +38,6 @@ class PopupWindow extends EventDispatcher {
this._popupTabId = null;
}
- // Public properties
-
/**
* The ID of the popup.
* @type {string}
@@ -59,7 +57,7 @@ class PopupWindow extends EventDispatcher {
* @type {Popup}
*/
set parent(value) {
- throw new Error('Not supported on PopupProxy');
+ throw new Error('Not supported on PopupWindow');
}
/**
@@ -77,7 +75,7 @@ class PopupWindow extends EventDispatcher {
* @throws Throws an error, since this class doesn't support children.
*/
set child(value) {
- throw new Error('Not supported on PopupProxy');
+ throw new Error('Not supported on PopupWindow');
}
/**
@@ -113,16 +111,13 @@ class PopupWindow extends EventDispatcher {
return this._frameId;
}
-
- // Public functions
-
/**
* Sets the options context for the popup.
* @param {object} optionsContext The options context object.
* @returns {Promise<void>}
*/
- setOptionsContext(optionsContext, source) {
- return this._invoke(false, 'setOptionsContext', {id: this._id, optionsContext, source});
+ setOptionsContext(optionsContext) {
+ return this._invoke(false, 'setOptionsContext', {id: this._id, optionsContext});
}
/**