summaryrefslogtreecommitdiff
path: root/js/event.ts
diff options
context:
space:
mode:
authorNayeem Rahman <muhammed.9939@gmail.com>2019-09-17 17:17:12 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-09-17 12:17:12 -0400
commite55e4a2838e0f67cd0789ec4d3eec62a5b7ab238 (patch)
treefdedfb5b0aa5fe35dc0021d170e7eabd66426b98 /js/event.ts
parent9cfdc60a23e6418d4780dc3ebd6266248555bb03 (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/event.ts')
-rw-r--r--js/event.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/event.ts b/js/event.ts
index 723926054..3efc1c517 100644
--- a/js/event.ts
+++ b/js/event.ts
@@ -10,18 +10,6 @@ function isTrusted(this: Event): boolean {
return getPrivateValue(this, eventAttributes, "isTrusted");
}
-export class EventInit implements domTypes.EventInit {
- bubbles = false;
- cancelable = false;
- composed = false;
-
- constructor({ bubbles = false, cancelable = false, composed = false } = {}) {
- this.bubbles = bubbles;
- this.cancelable = cancelable;
- this.composed = composed;
- }
-}
-
export class Event implements domTypes.Event {
// The default value is `false`.
// Use `defineProperty` to define on each instance, NOT on the prototype.