-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding getEventListeners_allOptions.js
- Loading branch information
Showing
8 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {addEventTargetRegistry} from "./getEventListeners_once_last_first.js"; | ||
import {addEventListenerOptionScopedUnstoppable} from "./EventListenersOptionUnstoppableScoped.js"; | ||
import {addEventIsStoppedScoped} from "./ScopedStopPropagation.js"; | ||
|
||
export function addGetEventListeners_allOptions( | ||
scopedByDefault, | ||
eventPrototype = Event.prototype, | ||
eventTargetPrototype = EventTarget.prototype) | ||
{ | ||
const isStopped = addEventIsStoppedScoped(eventPrototype); | ||
addEventListenerOptionScopedUnstoppable(eventTargetPrototype, isStopped); | ||
scopedByDefault && Object.defineProperty(eventPrototype, "isScoped", {value: true}); | ||
return addEventTargetRegistry(eventTargetPrototype); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters