can-dom-mutate/events/events
This adds attributes, inserted and removed attributes to the DOM.
    domMutateEvents
  
  can-dom-mutate/events/events Exports an object that allows to listen attributes, inserted and removed events
in the DOM using MutationObserver
import domMutateEvents from "can-dom-mutate/events/events";
import domEvents from "can-dom-events";
domMutateEvents //->
{
  attributes: {defaultEventType, addEventListener(), removeEventListener()},
  inserted: {defaultEventType, addEventListener(), removeEventListener},
  removed: {defaultEventType, addEventListener(), removeEventListener()},
}
// listen to inserted change within an element:
// add inserted event to registry
domEvents.addEvent(domMutateEvents.inserted);
domEvent.addEventListener(document.querySelector("#foo"), "inserted", handler () => {})
 GitHub
GitHub Twitter
Twitter