cotomy 0.1.63 → 0.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cotomy.js +1 -4
- package/dist/browser/cotomy.js.map +1 -1
- package/dist/browser/cotomy.min.js +1 -1
- package/dist/browser/cotomy.min.js.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/view.js +1 -4
- package/dist/esm/view.js.map +1 -1
- package/dist/types/view.d.ts +0 -1
- package/package.json +1 -1
package/dist/browser/cotomy.js
CHANGED
|
@@ -1771,7 +1771,7 @@ class CotomyWindow {
|
|
|
1771
1771
|
this._mutationObserver = new MutationObserver(mutations => {
|
|
1772
1772
|
mutations.forEach(mutation => {
|
|
1773
1773
|
mutation.removedNodes.forEach(node => {
|
|
1774
|
-
if (node instanceof HTMLElement) {
|
|
1774
|
+
if (typeof HTMLElement !== "undefined" && node instanceof HTMLElement) {
|
|
1775
1775
|
const element = new CotomyElement(node);
|
|
1776
1776
|
element.trigger("removed");
|
|
1777
1777
|
}
|
|
@@ -1832,9 +1832,6 @@ class CotomyWindow {
|
|
|
1832
1832
|
delete this._eventHandlers[event];
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
handlers(event) {
|
|
1836
|
-
return this._eventHandlers[event] ?? [];
|
|
1837
|
-
}
|
|
1838
1835
|
load(handle) {
|
|
1839
1836
|
this.on("load", handle);
|
|
1840
1837
|
}
|