Skip to content

Commit 6d81d3d

Browse files
authoredMar 29, 2020
Merge pull request #1826 from leviding/patch-11
Fix minor type errer: delete addition space
2 parents be80c33 + 2efef24 commit 6d81d3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎2-ui/2-events/05-dispatch-events/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ For instance, here the nested `menu-open` event is processed synchronously, duri
236236
237237
document.addEventListener('menu-open', () => alert('nested'));
238238
</script>
239-
```
239+
```
240240

241241
The output order is: 1 -> nested -> 2.
242242

@@ -263,7 +263,7 @@ If we don't like it, we can either put the `dispatchEvent` (or other event-trigg
263263
264264
document.addEventListener('menu-open', () => alert('nested'));
265265
</script>
266-
```
266+
```
267267

268268
Now `dispatchEvent` runs asynchronously after the current code execution is finished, including `mouse.onclick`, so event handlers are totally separate.
269269

0 commit comments

Comments
 (0)
Please sign in to comment.