Closed aeosynth closed 11 years ago
It's because some scuttlebutts overwrite emit
and this guarantees that the correct emit is called.
I think there is probably a test for this, did you run the tests?
all tests pass. the removed statement is duplicated on line 54 of master; this commit has no functional effect
Ah, very good. Merging.
why are you even writing
emit.call(this, ...)
instead ofthis.emit(...)
?edit: instead of
this.setMaxListeners(Number.MAX_VALUE)
, you could usethis.setMaxListeners(0)
for unlimited listeners, although your solution is technically more robust