summaryrefslogtreecommitdiff
path: root/ext/js/dom/dom-data-binder.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/dom/dom-data-binder.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/dom/dom-data-binder.js')
-rw-r--r--ext/js/dom/dom-data-binder.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/dom/dom-data-binder.js b/ext/js/dom/dom-data-binder.js
index 14b3b2cd..586e5869 100644
--- a/ext/js/dom/dom-data-binder.js
+++ b/ext/js/dom/dom-data-binder.js
@@ -56,7 +56,7 @@ export class DOMDataBinder {
onAdded: this._createObserver.bind(this),
onRemoved: this._removeObserver.bind(this),
onChildrenUpdated: this._onObserverChildrenUpdated.bind(this),
- isStale: this._isObserverStale.bind(this)
+ isStale: this._isObserverStale.bind(this),
});
}
@@ -105,7 +105,7 @@ export class DOMDataBinder {
const args = targets.map(([observer]) => ({
element: observer.element,
- metadata: observer.metadata
+ metadata: observer.metadata,
}));
const responses = await this._getValues(args);
this._applyValues(targets, responses, true);
@@ -123,7 +123,7 @@ export class DOMDataBinder {
args.push({
element: observer.element,
metadata: observer.metadata,
- value: task.data.value
+ value: task.data.value,
});
targets.push([observer, task]);
}
@@ -181,7 +181,7 @@ export class DOMDataBinder {
value: null,
hasValue: false,
onChange: null,
- metadata
+ metadata,
};
observer.onChange = this._onElementChange.bind(this, observer);