Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Copying the listeners array on calls EventEmitter.listeners(event). #3748

Closed
wants to merge 2 commits into from

Conversation

dynajoe
Copy link

@dynajoe dynajoe commented Jul 20, 2012

Complete with doc update and tests.

Addresses issue #3442.

e3.on('foo', listener2);
assert.deepEqual(e3.listeners('foo'), [listener, listener2]);
assert.deepEqual(e3ListenersCopy, [listener]);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No trailing newlines.

@bnoordhuis
Copy link
Member

One nit, otherwise LGTM. Joe, can you sign the CLA?

@dynajoe
Copy link
Author

dynajoe commented Jul 27, 2012

I've signed the agreement also.

@bnoordhuis
Copy link
Member

Thanks Joe, landed in 20e12e4.

@bnoordhuis bnoordhuis closed this Jul 27, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants