code: function emit() {
    if (arguments.length) this.emitted.push(arguments);
    while (!this.paused && this.emitted.length && this.readable) {
      var emitArgs = this.emitted.shift();
      this.emit.apply(this, emitArgs);
      if (emitArgs[0] == 'end') {
        this.readable = false;
      }
    }
  }
docs: add emit events to the event queue.
  
  (private method)