code: function once(event, listener) {
    function g() {
      this.removeListener(event, g);
      listener.apply(this, arguments);
    };
    this.on(event, g);
    return this;
  }
docs: Registers a listener to be invoked once.
  
  @param event The event name.
  @param listener The listener function.