src/tracker.js
/**
   * Binds some events to measure mouse and keyboard events
   */
Binds some events to measure mouse and keyboard events
Binds some events to measure mouse and keyboard events
_bindEvents() {
    on(this, EVENT_CLICK, (e) => this.onClick(e));
    on(this, EVENT_DOWNLOAD, (url) => this.downloaded(url));
    on(this, EVENT_LINK_CLICK, (e, link) => this.onLink(e, link));
    on(this, EVENT_MOUSEMOVE, (e, l) => this.moved(e, l));
    on(this, EVENT_OUTGOING, (url) => this.outgoing(url));
    on(this, EVENT_SCROLL, (elem) => this.onScroll(elem));
    on(this, EVENT_STATECHANGE, (e) => this.onPageStateChange(e));
    on(this, KEY_AUTO_DECORATE, (elem) => this.autoDecorate(elem));
  }
_bindEvents ( ) { on ( this , EVENT_CLICK , ( e ) => this . onClick ( e ) ) ; on ( this , EVENT_DOWNLOAD , ( url ) => this . downloaded ( url ) ) ; on ( this , EVENT_LINK_CLICK , ( e , link ) => this . onLink ( e , link ) ) ; on ( this , EVENT_MOUSEMOVE , ( e , l ) => this . moved ( e , l ) ) ; on ( this , EVENT_OUTGOING , ( url ) => this . outgoing ( url ) ) ; on ( this , EVENT_SCROLL , ( elem ) => this . onScroll ( elem ) ) ; on ( this , EVENT_STATECHANGE , ( e ) => this . onPageStateChange ( e ) ) ; on ( this , KEY_AUTO_DECORATE , ( elem ) => this . autoDecorate ( elem ) ) ; }
Binds some events to measure mouse and keyboard events
Binds some events to measure mouse and keyboard events