can-dom-events
Dispatch and listen to DOM Events.
domEvents
var domEvents = require("can-dom-events");
var input = document.createElement('input');
function onChange(event) {
console.log('Input value changed to:', event.target.value);
}
domEvents.addEventListener(input, 'change', onChange);
domEvents.dispatch(input, 'change'); // calls onChange
domEvents.removeEventListener(input, 'change', onChange);