mutation-observer
Get the global MutationObserver
object for the current context.
MUTATIONOBSERVER([newMutationObserver])
Optionally sets, and returns, the MutationObserver
object for the context.
var mutationObserverShim = require('can-globals/mutation-observer/mutation-observer');
MUTATIONOBSERVER(mutationObserverShim);
MUTATIONOBSERVER() //-> MutationObserver
Parameters
- MutationObserver
{Object}
:An optional MutationObserver-like object to set as the context's MutationObserver
Returns
{Object}
:
The MutationObserver object for this JavaScript environment.