| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6bf148e commit d9b5cd5
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -310,7 +310,7 @@ class Event { | |||
| 310 | 310 | if (!isEvent(this)) | |
| 311 | 311 | throw new ERR_INVALID_THIS('Event'); | |
| 312 | 312 | if (value) { | |
| 313 | - this.stopPropagation(); | ||
| 313 | + this.#propagationStopped = true; | ||
| 314 | 314 | } | |
| 315 | 315 | } | |
| 316 | 316 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -738,3 +738,10 @@ let asyncTest = Promise.resolve(); | |||
| 738 | 738 | controller.abort(); | |
| 739 | 739 | et.dispatchEvent(new Event('foo')); | |
| 740 | 740 | } | |
| 741 | + | ||
| 742 | + { | ||
| 743 | + const event = new Event('foo'); | ||
| 744 | + strictEqual(event.cancelBubble, false); | ||
| 745 | + event.cancelBubble = true; | ||
| 746 | + strictEqual(event.cancelBubble, true); | ||
| 747 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments