summaryrefslogtreecommitdiff
path: root/ext/js/app/popup-factory.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/app/popup-factory.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/app/popup-factory.js')
-rw-r--r--ext/js/app/popup-factory.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/app/popup-factory.js b/ext/js/app/popup-factory.js
index 9cada2c8..2aeb23f4 100644
--- a/ext/js/app/popup-factory.js
+++ b/ext/js/app/popup-factory.js
@@ -62,7 +62,7 @@ export class PopupFactory {
['popupFactoryUpdateTheme', this._onApiUpdateTheme.bind(this)],
['popupFactorySetCustomOuterCss', this._onApiSetCustomOuterCss.bind(this)],
['popupFactoryGetFrameSize', this._onApiGetFrameSize.bind(this)],
- ['popupFactorySetFrameSize', this._onApiSetFrameSize.bind(this)]
+ ['popupFactorySetFrameSize', this._onApiSetFrameSize.bind(this)],
]);
/* eslint-enable @stylistic/no-multi-spaces */
}
@@ -78,7 +78,7 @@ export class PopupFactory {
parentPopupId = null,
depth = null,
popupWindow = false,
- childrenSupported = false
+ childrenSupported = false,
}) {
// Find by existing id
if (id !== null) {
@@ -124,7 +124,7 @@ export class PopupFactory {
this._application,
id,
depth,
- currentFrameId
+ currentFrameId,
);
this._popups.set(id, popup);
return popup;
@@ -138,7 +138,7 @@ export class PopupFactory {
id,
depth,
currentFrameId,
- childrenSupported
+ childrenSupported,
);
if (parent !== null) {
if (parent.child !== null) {
@@ -159,7 +159,7 @@ export class PopupFactory {
id,
parentPopupId,
frameId,
- childrenSupported
+ childrenSupported,
});
id = info.id;
const popup = new PopupProxy(
@@ -167,7 +167,7 @@ export class PopupFactory {
id,
info.depth,
info.frameId,
- useFrameOffsetForwarder ? this._frameOffsetForwarder : null
+ useFrameOffsetForwarder ? this._frameOffsetForwarder : null,
);
this._popups.set(id, popup);
return popup;
@@ -249,7 +249,7 @@ export class PopupFactory {
return {
id: popup.id,
depth: popup.depth,
- frameId: popup.frameId
+ frameId: popup.frameId,
};
}
@@ -402,7 +402,7 @@ export class PopupFactory {
const promise = popup.clearVisibleOverride(token)
.then(
(v) => v,
- () => false
+ () => false,
);
promises.push(promise);
}