FIX: EventEmitter#removeListener logic
authorJonas Pfenniger <jonas@pfenniger.name>
Fri, 14 May 2010 11:12:41 +0000 (13:12 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Sat, 15 May 2010 02:13:50 +0000 (19:13 -0700)
commitfea6f829bf6cc0d2f3f698a786832797d5ddae8e
tree3fb5439b845fc7a5d30b077dc8e36ba935f9ef9e
parent4274e6b7d0f5eb3559dd8f91941ce47d9a68e370
FIX: EventEmitter#removeListener logic

In the case of one defined listener, the function should only remove it
if it is the same as the passed listener.
lib/events.js
test/simple/test-event-emitter-remove-listeners.js [new file with mode: 0644]