@JsFunction public static interface MutationObserver.MutationObserverCallback
Modifier and Type | Method and Description |
---|---|
Object |
onInvoke(MutationRecord[] mutationRecords,
MutationObserver observer)
The callback function takes as input two parameters:
an array of MutationRecord objects describing each change that occurred
the MutationObserver which invoked the callback. |
Object onInvoke(MutationRecord[] mutationRecords, MutationObserver observer)
MutationRecord
objects describing each change that occurred
MutationObserver
which invoked the callback.
mutationRecords
- an array of MutationRecord
objects describing each change that occurredobserver
- the MutationObserver
which invoked the callbackMutationObserver
object configured to call the specified callback when DOM mutations occur.