aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dom')
-rw-r--r--ext/js/dom/document-focus-controller.js2
-rw-r--r--ext/js/dom/document-util.js2
-rw-r--r--ext/js/dom/dom-data-binder.js2
-rw-r--r--ext/js/dom/dom-text-scanner.js2
-rw-r--r--ext/js/dom/panel-element.js2
-rw-r--r--ext/js/dom/popup-menu.js2
-rw-r--r--ext/js/dom/selector-observer.js4
7 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/dom/document-focus-controller.js b/ext/js/dom/document-focus-controller.js
index 32ea2ce8..fd88a35d 100644
--- a/ext/js/dom/document-focus-controller.js
+++ b/ext/js/dom/document-focus-controller.js
@@ -28,7 +28,7 @@ export class DocumentFocusController {
* @param {?string} autofocusElementSelector A selector string which can be used to specify an element which
* should be automatically focused on prepare.
*/
- constructor(autofocusElementSelector=null) {
+ constructor(autofocusElementSelector = null) {
/** @type {?HTMLElement} */
this._autofocusElement = (autofocusElementSelector !== null ? document.querySelector(autofocusElementSelector) : null);
/** @type {?HTMLElement} */
diff --git a/ext/js/dom/document-util.js b/ext/js/dom/document-util.js
index 0153e74a..fe10d670 100644
--- a/ext/js/dom/document-util.js
+++ b/ext/js/dom/document-util.js
@@ -349,7 +349,7 @@ export class DocumentUtil {
* @param {EventListener} onFullscreenChanged The event callback.
* @param {?import('../core.js').EventListenerCollection} eventListenerCollection An optional `EventListenerCollection` to add the registration to.
*/
- static addFullscreenChangeEventListener(onFullscreenChanged, eventListenerCollection=null) {
+ static addFullscreenChangeEventListener(onFullscreenChanged, eventListenerCollection = null) {
const target = document;
const options = false;
const fullscreenEventNames = [
diff --git a/ext/js/dom/dom-data-binder.js b/ext/js/dom/dom-data-binder.js
index cf98a243..e2558338 100644
--- a/ext/js/dom/dom-data-binder.js
+++ b/ext/js/dom/dom-data-binder.js
@@ -27,7 +27,7 @@ export class DOMDataBinder {
/**
* @param {import('dom-data-binder').ConstructorDetails<T>} details
*/
- constructor({selector, createElementMetadata, compareElementMetadata, getValues, setValues, onError=null}) {
+ constructor({selector, createElementMetadata, compareElementMetadata, getValues, setValues, onError = null}) {
/** @type {string} */
this._selector = selector;
/** @type {import('dom-data-binder').CreateElementMetadataCallback<T>} */
diff --git a/ext/js/dom/dom-text-scanner.js b/ext/js/dom/dom-text-scanner.js
index 42e0acc9..df097688 100644
--- a/ext/js/dom/dom-text-scanner.js
+++ b/ext/js/dom/dom-text-scanner.js
@@ -31,7 +31,7 @@ export class DOMTextScanner {
* regardless of CSS styling.
* @param {boolean} generateLayoutContent Whether or not newlines should be added based on CSS styling.
*/
- constructor(node, offset, forcePreserveWhitespace=false, generateLayoutContent=true) {
+ constructor(node, offset, forcePreserveWhitespace = false, generateLayoutContent = true) {
const ruby = DOMTextScanner.getParentRubyElement(node);
const resetOffset = (ruby !== null);
if (resetOffset) { node = ruby; }
diff --git a/ext/js/dom/panel-element.js b/ext/js/dom/panel-element.js
index 748c3a36..d4cb28fd 100644
--- a/ext/js/dom/panel-element.js
+++ b/ext/js/dom/panel-element.js
@@ -57,7 +57,7 @@ export class PanelElement extends EventDispatcher {
* @param {boolean} value
* @param {boolean} [animate]
*/
- setVisible(value, animate=true) {
+ setVisible(value, animate = true) {
value = !!value;
if (this.isVisible() === value) { return; }
diff --git a/ext/js/dom/popup-menu.js b/ext/js/dom/popup-menu.js
index 33cdd1ae..72df82a0 100644
--- a/ext/js/dom/popup-menu.js
+++ b/ext/js/dom/popup-menu.js
@@ -96,7 +96,7 @@ export class PopupMenu extends EventDispatcher {
* @param {boolean} [cancelable]
* @returns {boolean}
*/
- close(cancelable=true) {
+ close(cancelable = true) {
return this._close(null, 'close', cancelable, null);
}
diff --git a/ext/js/dom/selector-observer.js b/ext/js/dom/selector-observer.js
index 2cf46543..8dd18242 100644
--- a/ext/js/dom/selector-observer.js
+++ b/ext/js/dom/selector-observer.js
@@ -25,7 +25,7 @@ export class SelectorObserver {
* Creates a new instance.
* @param {import('selector-observer').ConstructorDetails<T>} details The configuration for the object.
*/
- constructor({selector, ignoreSelector=null, onAdded=null, onRemoved=null, onChildrenUpdated=null, isStale=null}) {
+ constructor({selector, ignoreSelector = null, onAdded = null, onRemoved = null, onChildrenUpdated = null, isStale = null}) {
/** @type {string} */
this._selector = selector;
/** @type {?string} */
@@ -65,7 +65,7 @@ export class SelectorObserver {
* @throws {Error} An error if element is null.
* @throws {Error} An error if an element is already being observed.
*/
- observe(element, attributes=false) {
+ observe(element, attributes = false) {
if (element === null) {
throw new Error('Invalid element');
}