src code

instance method EventEmitter#removeListener

EventEmitter#removeListener(eventName, listener) → this
  • eventName (String) – The name of the event in which listener needs to be removed.
  • listener (Function) – The function to remove from the array of listeners for eventName.

Removes a single listener for eventName. If listener is not found in eventName's list of listeners, then this function does nothing.