Try Install Learn Blog API Packages GitHub
Pages
Standard Library

Search
Entities

MutationObserver

Functions

new
(
callback
:
Function(Array(MutationObserver.Entry), a)
)
:
MutationObserver

Creates a new resize observer.

observer =
  MutationObserver.new((entries : MutationObserver.Entry) {
    for (entry of entries) {
      Debug.log(entry)
    }
  })
observe
(
element
:
Dom.Element
subtree
:
Bool
childList
:
Bool
observer
:
MutationObserver
)
:
MutationObserver

Observes the given element.

unobserve
(
element
:
Dom.Element
observer
:
MutationObserver
)
:
MutationObserver

Unobserves the given element.