Package org.pepstock.charba.client.dom
Interface MutationObserver.MutationObserverCallback
-
- Enclosing class:
- MutationObserver
@JsFunction public static interface MutationObserver.MutationObserverCallback
A function which will be called on each DOM change that qualifies given the targeted node or subtree and options.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
onInvoke(MutationRecord[] mutationRecords, MutationObserver observer)
The callback function takes as input two parameters:
an array ofMutationRecord
objects describing each change that occurred theMutationObserver
which invoked the callback.
-
-
-
Method Detail
-
onInvoke
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.
- Parameters:
mutationRecords
- an array ofMutationRecord
objects describing each change that occurredobserver
- theMutationObserver
which invoked the callback- Returns:
- a new
MutationObserver
object configured to call the specified callback when DOM mutations occur.
- an array of
-
-