diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2019-09-17 17:17:12 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-17 12:17:12 -0400 |
commit | e55e4a2838e0f67cd0789ec4d3eec62a5b7ab238 (patch) | |
tree | fdedfb5b0aa5fe35dc0021d170e7eabd66426b98 /js/custom_event.ts | |
parent | 9cfdc60a23e6418d4780dc3ebd6266248555bb03 (diff) |
Remove some non-standard web API constructors (#2970)
This removes the EventListener, EventInit and CustomEventInit constructors from the userland globals. The type exports stay.
I removed the internal classes as well. EventListener's implementation seemed to be doing some bookkeeping on handled events but that's not being used anywhere so I assume it's old debug stuff. The other two are completely redundant.
Diffstat (limited to 'js/custom_event.ts')
-rw-r--r-- | js/custom_event.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/js/custom_event.ts b/js/custom_event.ts index 67668bbb7..922abd4b1 100644 --- a/js/custom_event.ts +++ b/js/custom_event.ts @@ -7,22 +7,6 @@ import { getPrivateValue, requiredArguments } from "./util.ts"; // https://developer.mozilla.org/en-US/docs/Archive/Add-ons/Add-on_SDK/Guides/Contributor_s_Guide/Private_Properties#Using_WeakMaps export const customEventAttributes = new WeakMap(); -export class CustomEventInit extends event.EventInit - implements domTypes.CustomEventInit { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - detail: any; - - constructor({ - bubbles = false, - cancelable = false, - composed = false, - detail = null - }: domTypes.CustomEventInit) { - super({ bubbles, cancelable, composed }); - this.detail = detail; - } -} - export class CustomEvent extends event.Event implements domTypes.CustomEvent { constructor( type: string, |