code: function eventSpy(eventType) {
          var path = phantomas.getDOMPath(this);
          phantomas.log('DOM event: "' + eventType + '" bound to "' + path + '"');
  
          phantomas.incrMetric('eventsBound');
          phantomas.addOffender('eventsBound', {eventType, path});
  
          // count window.addEventListener('scroll', ...) - issue #508
          if (eventType === 'scroll' && (path === 'window' || path === '#document')) {
              phantomas.incrMetric('eventsScrollBound');
              phantomas.addOffender('eventsScrollBound', {element: path});
          }
      }
docs: spy calls to EventTarget.addEventListener @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener