summaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-29 19:44:53 -0400
committerGitHub <noreply@github.com>2020-05-29 19:44:53 -0400
commit37f0396f1cf4f74833d9a4a364f503f4a7c3e34a (patch)
tree53f91dd03d592fbef83a776f8ee5e3d84cf254b0 /ext/mixed/js
parent9d40955fc822f4cea141ecb9abf4a838ffe90eb9 (diff)
DOM binder fixes (#564)
* Fix incorrect updateValue function * Add source
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/dom-data-binder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/dom-data-binder.js b/ext/mixed/js/dom-data-binder.js
index 05a84240..d46e8087 100644
--- a/ext/mixed/js/dom-data-binder.js
+++ b/ext/mixed/js/dom-data-binder.js
@@ -108,8 +108,8 @@ class DOMDataBinder {
if (addedNodes.length !== 0 || addedNodes.length !== 0) {
const observer = this._elementMap.get(target);
- if (typeof observer !== 'undefined') {
- observer.updateValue();
+ if (typeof observer !== 'undefined' && observer.hasValue) {
+ this._setElementValue(observer.element, observer.value);
}
}
}