Although this file should contains technical debt, it also can contain improvements or feature request.
Since RawGit has reached the end of its useful life, it is necessary to migrate to another CDN service as jsDelivr.
https://cdn.jsdelivr.net/gh/jherax/[email protected]/dist/handle-events.js
It is necessary to add unit tests to ensure code quality and predictability.
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.