Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4.0 #3

Merged
merged 9 commits into from
Jan 3, 2024
Prev Previous commit
Next Next commit
Fixed a fault that prevented changes from being detected when a DOM e…
…lement is removed from the DOM.
William Troup committed Jan 3, 2024
commit a1abd334f3990d6d54723b787fcb1059854840a5
2 changes: 2 additions & 0 deletions dist/observe.js
Original file line number Diff line number Diff line change
@@ -85,6 +85,8 @@
domElement = _parameter_Document.getElementById(watch.domElementId);
if (isDefined(domElement)) {
watch.originalObject = domElement.outerHTML;
} else {
watch.originalObject = _string.empty;
}
}
var cachedObject = watch.cachedObject;
20 changes: 10 additions & 10 deletions dist/observe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@

#### **Fixes:**
- Fixed a fault that prevented the binding attribute from being removed from the DOM elements.
- Fixed a fault that prevented changes from being detected when a DOM element is removed from the DOM.

<br>

2 changes: 2 additions & 0 deletions src/observe.js
Original file line number Diff line number Diff line change
@@ -155,6 +155,8 @@

if ( isDefined( domElement ) ) {
watch.originalObject = domElement.outerHTML;
} else {
watch.originalObject = _string.empty;
}
}