| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ec17fd7 commit 78f8180
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -306,7 +306,7 @@ class Event { | |||
| 306 | 306 | if (!isEvent(this)) | |
| 307 | 307 | throw new ERR_INVALID_THIS('Event'); | |
| 308 | 308 | if (value) { | |
| 309 | - this.stopPropagation(); | ||
| 309 | + this.#propagationStopped = true; | ||
| 310 | 310 | } | |
| 311 | 311 | } | |
| 312 | 312 | ||
| 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