Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 843 Bytes

DEBT.md

File metadata and controls

37 lines (28 loc) · 843 Bytes

Technical Debt

Although this file should contains technical debt, it also can contain improvements or feature request.

Add a method to trigger events

It would be useful to have a method to trigger events, e.g.

trigger(node: Element, eventns: String | Object)

Get events from other source

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.