1.0.5 • Published 8 years ago

watchdom v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

WatchDom

WatchDom is a MutationObserver chainable library dom observer.

Build Status

Install

npm

$ npm install watchdom

bower

$ bower install watchdom

Usage

Browser
var myElement = document.getElementById( "example" );

var params = {
  childList: true,
  attributes: true,
  characterData: true,
  subtree: true,
  attributeOldValue: true,
  characterDataOldValue: true
};

var watcher = domWatcher();
watcher.observe( myElement, params );
watcher.notify( function( mutation ) {
	// do something
} );

...

watcher.stop();
npm
import WatchDom from 'watchdom';

let watcher = WatchDom();
watcher.observe( myElement, params );
watcher.notify( ( mutation ) => {
	// do something
} );

...

watcher.stop();
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago