diff options
author | Luigi Pinca <luigipinca@gmail.com> | 2020-10-26 11:03:16 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-10-28 16:39:16 +0300 |
commit | 81ba3ae699a8ee04e3a5a05b0f7e066b5a486c42 (patch) | |
tree | ed3ce3ee4f80c95d69cdc256fa9e1c072d9f5bb8 /doc/api/events.md | |
parent | 937b70ddec3e9befc06cf0ab07b39d66827d0886 (diff) |
events: make eventTarget.removeAllListeners() return this
Fixes: https://github.com/nodejs/node/issues/35762
PR-URL: https://github.com/nodejs/node/pull/35805
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc/api/events.md')
-rw-r--r-- | doc/api/events.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/events.md b/doc/api/events.md index b6403e812ec..a46fa06042c 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -1525,6 +1525,8 @@ added: v14.5.0 * `type` {string} +* Returns: {EventTarget} this + Node.js-specific extension to the `EventTarget` class. If `type` is specified, removes all registered listeners for `type`, otherwise removes all registered listeners. |