Skip to content

Invoke a callback when a DOM element is removed from the document

Notifications You must be signed in to change notification settings

component/removed

Repository files navigation

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

About

Invoke a callback when a DOM element is removed from the document

Resources

Stars

Watchers

Forks

Packages

No packages published