src/notifier.js
function setupEvent(element, eType, handler, capture) {
  notifyOfNextSubs[eType] = [];
  subsIDs[eType] = {};
  element.addEventListener(
    eType,
    handler,
    passiveEventSupport
      ? {
          capture,
          // don't set click listener as passive because syntheticClick may call preventDefault
          passive: eType !== 'click',
        }
      : capture,
  );
}
function setupEvent(element, eType, handler, capture) {
  notifyOfNextSubs[eType] = [];
  subsIDs[eType] = {};
  element.addEventListener(
    eType,
    handler,
    passiveEventSupport
      ? {
          capture,
          // don't set click listener as passive because syntheticClick may call preventDefault
          passive: eType !== 'click',
        }
      : capture,
  );
}
function setupEvent ( element , eType , handler , capture ) { notifyOfNextSubs [ eType ] = [ ] ; subsIDs [ eType ] = { } ; element . addEventListener ( eType , handler , passiveEventSupport ? { capture , // don't set click listener as passive because syntheticClick may call preventDefault passive : eType !== 'click' , } : capture , ) ; }
setup event listeners and notification system for events
setup event listeners and notification system for events