diff --git a/event_emitter.coffee b/event_emitter.coffee index 874d297..95fdd58 100644 --- a/event_emitter.coffee +++ b/event_emitter.coffee @@ -106,7 +106,7 @@ class EventEmitterModule if @eventListeners?[name]? for _listener, i in @eventListeners[name] if _listener is listener - @eventListeners[i..i] = [] # remove element at index i + @eventListeners[name][i..i] = [] # remove element at index i return off: (name, listener) ->