Remove vestigial ChildObserver class from DOM lens

This commit is contained in:
Talia 2024-02-06 11:18:25 +01:00
parent 71d7c0ff4f
commit 9b738bd589
Signed by: darkwiiplayer
GPG Key ID: 7808674088232B3E
1 changed files with 0 additions and 14 deletions

View File

@ -1,17 +1,3 @@
class ChildObserver extends MutationObserver {
constructor() {
super(mutations => {
for (const mutation of mutations) {
mutation.target.dispatchEvent(new CustomEvent("change", {detail: mutation}))
}
})
}
observe(element) {
MutationObserver.prototype.observe.call(this, element, { childList: true })
}
}
export const lense = (methods, extra) => {
if (extra) return lense(extra)(methods)