MutationObserver

@native @JSGlobal @JSType
class MutationObserver(callback: Function2[Array[MutationRecord], MutationObserver, _]) extends Object

MutationObserver provides developers a way to react to changes in a DOM. It is designed as a replacement for Mutation Events defined in the DOM3 Events specification.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def disconnect(): Unit

Stops the MutationObserver instance from receiving notifications of DOM mutations. Until the observe() method is used again, observer's callback will not be invoked.

Stops the MutationObserver instance from receiving notifications of DOM mutations. Until the observe() method is used again, observer's callback will not be invoked.

def observe(target: Node, options: MutationObserverInit): Unit

Registers the MutationObserver instance to receive notifications of DOM mutations on the specified node.

Registers the MutationObserver instance to receive notifications of DOM mutations on the specified node.

Empties the MutationObserver instance's record queue and returns what was in there.

Empties the MutationObserver instance's record queue and returns what was in there.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object