removed
This event fires when the bound element is detached or destroyed.
events
var events = require("can-util/dom/events/events");
require("can-util/dom/events/removed/removed");
var foo = document.createElement("div");
document.body.appendChild(foo);
var log = function() { console.log("removed event fired"); }
events.addEventListener.call(foo, "removed", log);
document.body.removeChild(foo); // remove event fired