Namespace

stat_obs

stat_obs

Observer object (based on MutationObserver)

Methods

static check()

Checker function called by the observer.
Collect expected nodes and pass them to the callback.

static run(node, selector, fnCallback, once)

Run the Observer

Parameters:
Name Type Description
node object

Node that must be observed

selector string

CSS Selector of nodes to be passed to the Callback (1 call per node). If not provided (empty string), only the document element will be addressed.

fnCallback function

Function that must be fired

once boolean

true if the callback must be fired only once