Although this file should contains technical debt, it also can contain improvements or feature request.
It would be useful to have a method to trigger events, e.g.
trigger(node: Element, eventns: String | Object)
It could be nice to have a method that can obtain the methods registered by other sorces, such as jQuery internal API.
For example:
addSources('jQuery', function($) {
// perform logic here...
return {
// return the cache object from internal API
node,
events: {
click: [
{ handler, namespace, useCapture, selector, delegated, source },
],
}
};
});
The method getEventListeners
should check also in the sources registered
in order to get the event listeners.