Invoke a callback when a DOM element is removed.
$ component install component/removed
var removed = require('removed');
removed(el, function(){
console.log('element was removed!');
});
Invokes fn
when el
is removed from the DOM.
The setInterval
fallback uses removed.interval
, defaulting to 200ms.
MIT