removed

0.0.5 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i removed

    Weekly Downloads

    21

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • tootallnate