Merge pull request #1826 from leviding/patch-11
Fix minor type errer: delete addition space
This commit is contained in:
commit
6d81d3dc61
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ For instance, here the nested `menu-open` event is processed synchronously, duri
|
|||
|
||||
document.addEventListener('menu-open', () => alert('nested'));
|
||||
</script>
|
||||
```
|
||||
```
|
||||
|
||||
The output order is: 1 -> nested -> 2.
|
||||
|
||||
|
@ -263,7 +263,7 @@ If we don't like it, we can either put the `dispatchEvent` (or other event-trigg
|
|||
|
||||
document.addEventListener('menu-open', () => alert('nested'));
|
||||
</script>
|
||||
```
|
||||
```
|
||||
|
||||
Now `dispatchEvent` runs asynchronously after the current code execution is finished, including `mouse.onclick`, so event handlers are totally separate.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue