Remove vestigial ChildObserver class from DOM lens
This commit is contained in:
parent
71d7c0ff4f
commit
9b738bd589
1 changed files with 0 additions and 14 deletions
14
domLense.js
14
domLense.js
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue