removed-component

invoke a callback when a DOM element is removed

npm install removed-component
1 downloads in the last day
15 downloads in the last week
32 downloads in the last month

removed

Invoke a callback when a DOM element is removed.

Installation

$ component install component/removed

Example

var removed = require('removed');
removed(el, function(){
  console.log('element was removed!');
});

API

removed(el, fn)

Invokes fn when el is removed from the DOM.

.interval

The setInterval fallback uses removed.interval, defaulting to 200ms.

License

MIT

npm loves you