| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -408,15 +408,6 @@ ObjectDefineProperties(CustomEvent.prototype, { | |||
| 408 | 408 | detail: kEnumerableProperty, | |
| 409 | 409 | }); | |
| 410 | 410 | ||
| 411 | - class NodeCustomEvent extends Event { | ||
| 412 | - constructor(type, options) { | ||
| 413 | - super(type, options); | ||
| 414 | - if (options?.detail) { | ||
| 415 | - this.detail = options.detail; | ||
| 416 | - } | ||
| 417 | - } | ||
| 418 | - } | ||
| 419 | - | ||
| 420 | 411 | // Weak listener cleanup | |
| 421 | 412 | // This has to be lazy for snapshots to work | |
| 422 | 413 | let weakListenersState = null; | |
@@ -837,7 +828,7 @@ class EventTarget { | |||
| 837 | 828 | } | |
| 838 | 829 | ||
| 839 | 830 | [kCreateEvent](nodeValue, type) { | |
| 840 | - return new NodeCustomEvent(type, { detail: nodeValue }); | ||
| 831 | + return new CustomEvent(type, { detail: nodeValue }); | ||
| 841 | 832 | } | |
| 842 | 833 | [customInspectSymbol](depth, options) { | |
| 843 | 834 | if (!isEventTarget(this)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments