lib/events.js
function(){
    if (this.eventQueue.length > 0){
      this.send(this.eventQueue);
      this.eventQueue = new Array();
    }
    // //reset the timer
    if (this.timer)  clearTimeout(this.timer);
    if (this.flushInterval) this.timer = setTimeout(this.flush.bind(this), this.flushInterval)
  }
function(){
    if (this.eventQueue.length > 0){
      this.send(this.eventQueue);
      this.eventQueue = new Array();
    }
    // //reset the timer
    if (this.timer)  clearTimeout(this.timer);
    if (this.flushInterval) this.timer = setTimeout(this.flush.bind(this), this.flushInterval)
  }
function ( ) { if ( this . eventQueue . length > 0 ) { this . send ( this . eventQueue ) ; this . eventQueue = new Array ( ) ; } // //reset the timer if ( this . timer ) clearTimeout ( this . timer ) ; if ( this . flushInterval ) this . timer = setTimeout ( this . flush . bind ( this ) , this . flushInterval ) }
Flush out the event queue by sending events to the events service
@private
Flush out the event queue by sending events to the events service