lib/events.js
function(evt, forceFlush){
    this.eventQueue.push(evt);
    if (this.eventQueue.length >= this.maxQueueSize || forceFlush){
      this.flush();
    }
  }
function(evt, forceFlush){
    this.eventQueue.push(evt);
    if (this.eventQueue.length >= this.maxQueueSize || forceFlush){
      this.flush();
    }
  }
function ( evt , forceFlush ) { this . eventQueue . push ( evt ) ; if ( this . eventQueue . length >= this . maxQueueSize || forceFlush ) { this . flush ( ) ; } }
Push event into the pending queue
@param {Object} evt the event to send to the events service
@param {Boolean} forceFlush indicates that the event queue should be flushed after adding this event regardless of size of the queue
@private
Push event into the pending queue