code: function flushEvents() {
    var tmp = PENDING_QUEUE;
    PENDING_QUEUE = [];
    for (var i = 0; i < tmp.length; i++) {
      clientObj.send('log', tmp[i].item, tmp[i].fn);
    }
  }
docs: /* Private function for event flushing