Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 520ef83

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: remove "note that" from events.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent d65c90b commit 520ef83
Copy full SHA for 520ef83

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/events.md‎

Copy file name to clipboardExpand all lines: doc/api/events.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ change affects *all* `EventEmitter` instances, including those created before
261261
the change is made. However, calling [`emitter.setMaxListeners(n)`][] still has
262262
precedence over `EventEmitter.defaultMaxListeners`.
263263

264-
Note that this is not a hard limit. The `EventEmitter` instance will allow
264+
This is not a hard limit. The `EventEmitter` instance will allow
265265
more listeners to be added but will output a trace warning to stderr indicating
266266
that a "possible EventEmitter memory leak" has been detected. For any single
267267
`EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()`
@@ -508,7 +508,7 @@ added: v0.1.26
508508

509509
Removes all listeners, or those of the specified `eventName`.
510510

511-
Note that it is bad practice to remove listeners added elsewhere in the code,
511+
It is bad practice to remove listeners added elsewhere in the code,
512512
particularly when the `EventEmitter` instance was created by some other
513513
component or module (e.g. sockets or file streams).
514514

@@ -539,7 +539,7 @@ listener array. If any single listener has been added multiple times to the
539539
listener array for the specified `eventName`, then `removeListener()` must be
540540
called multiple times to remove each instance.
541541

542-
Note that once an event has been emitted, all listeners attached to it at the
542+
Once an event has been emitted, all listeners attached to it at the
543543
time of emitting will be called in order. This implies that any
544544
`removeListener()` or `removeAllListeners()` calls *after* emitting and
545545
*before* the last listener finishes execution will not remove them from

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.