Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1748,14 +1748,16 @@ added: v14.5.0

This is not used in Node.js and is provided purely for completeness.

#### `event.cancelBubble()`
#### `event.cancelBubble`

<!-- YAML
added: v14.5.0
-->

Alias for `event.stopPropagation()`. This is not used in Node.js and is
provided purely for completeness.
* Type: {boolean}

Alias for `event.stopPropagation()` if set to `true`. This is not used
in Node.js and is provided purely for completeness.

#### `event.cancelable`

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/event_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class Event {
}

/**
* @type {boolean}
* @param {boolean} value
*/
set cancelBubble(value) {
if (!isEvent(this))
Expand Down