0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Lance Ball 23818c6d0b doc: correctly document the behavior of ee.once().
Addresses #5566. The `ee.once()` function is currently documented as
invoking the listener, and then removing it when the event is
triggered. However, this is not really the case. The listener is removed
and _then_ invoked. This only matters in a narrow set of use cases, but
when it matters, it matters that the docs are correct.

See the issue (#5566) for a discussion on why the code has not been
modified to match the documentation, but instead the documentation has
been modified to match the code.

Fixes: https://github.com/nodejs/node/issues/5566
PR-URL: https://github.com/nodejs/node/pull/6371
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
2016-04-26 22:49:37 -07:00
..
api doc: correctly document the behavior of ee.once(). 2016-04-26 22:49:37 -07:00
api_assets doc: fix scrolling on iOS devices 2016-04-09 18:21:05 +02:00
ctc-meetings doc: add CTC meeting minutes 2016-02-10 2016-03-21 15:54:35 -07:00
guides doc: add "building node with ninja" guide 2016-02-23 12:23:45 -05:00
topics doc: add domain postmortem 2016-04-15 15:12:26 -06:00
tsc-meetings
CHANGELOG.ARCHIVE.md meta: split CHANGELOG into two files 2016-04-26 13:16:01 -07:00
full-white-stripe.jpg build: update Node.js logo on Win installer 2016-03-06 20:22:36 -06:00
node.1 process: add 'warning' event and process.emitWarning() 2016-03-24 13:19:11 -07:00
onboarding-extras.md doc: add onboarding resources 2016-03-14 11:35:04 -04:00
onboarding.md doc: add onboarding resources 2016-03-14 11:35:04 -04:00
osx_installer_logo.png build: update Node.js logo on OSX installer 2016-02-27 16:49:56 +11:00
releases.md doc: change references to Stable to Current 2016-04-26 09:52:44 -07:00
template.html doc: improve scrolling, various CSS tweaks 2016-02-14 05:46:18 +01:00
thin-white-stripe.jpg build: update Node.js logo on Win installer 2016-03-06 20:22:36 -06:00