element-change
v1.0.1
Published
Detect when an element is changed in DOM
Downloads
16
Maintainers
Readme
element-change
Detect when an element is changed in DOM
Install
$ npm install --save element-change
Usage
const elementChange = require('element-change');
elementChange('#feed',onChangeCallback)
API
elementChanged(selector)
selector
Type: string
Waits until element is ready in the DOM using element-ready
onChangeCallback()
Type: Function
onChangeCallback() will be called with MutationRecord parameter.
Example
Inspiration
License
MIT © Ashik Nesin