-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: improvements to events.markdown copy #4468
Conversation
LGTM My only comment is that it seems like the first example might have too much inheritance logic that the basic emitter logic could be lost on a newer developer. Perhaps the first example should simply show setting up an instance of emitter? |
// Prints: 2 | ||
|
||
Using the `eventEmitter.once()` method, it is possible to register a listener | ||
that is immediate unregistered after it is called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
immediately
One minor nit, but LGTM other than that. |
@thealphanerd ... given that inheriting from |
General improvements to events.markdown copy including a bit of restructuring and improved examples
203d1cd
to
abdc464
Compare
@Qard ... nit addressed. |
LGTM |
@jasnell that is reasonable enough, and how it was done before. LGTM |
General improvements to events.markdown copy including a bit of restructuring and improved examples PR-URL: #4468 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Landed in a0130e1 |
General improvements to events.markdown copy including a bit of restructuring and improved examples PR-URL: nodejs#4468 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
General improvements to events.markdown copy including a bit of restructuring and improved examples PR-URL: #4468 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
General improvements to events.markdown copy including a bit of restructuring and improved examples PR-URL: #4468 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
General improvements to events.markdown copy including a bit of restructuring and improved examples PR-URL: nodejs#4468 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
General improvements to events.markdown copy including a
bit of restructuring and improved examples