instance method EventEmitter#removeListener
EventEmitter#removeListener(eventName, listener) → this
-
eventName
(String
) – The name of the event in whichlistener
needs to be removed. -
listener
(Function
) – Thefunction
to remove from the array of listeners foreventName
.
Removes a single listener for eventName
. If listener
is not found
in eventName
's list of listeners, then this function does nothing.