Merge pull request #2290 from vsemozhetbyt/patch-7

Fix typo in 2.2.5 (Dispatching custom events)
This commit is contained in:
Ilya Kantor 2020-11-25 09:01:20 +03:00 committed by GitHub
commit a2494a70dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ Then we can either put the `dispatchEvent` (or another event-triggering call) at
</script>
```
Now `dispatchEvent` runs asynchronously after the current code execution is finished, including `mouse.onclick`, so event handlers are totally separate.
Now `dispatchEvent` runs asynchronously after the current code execution is finished, including `menu.onclick`, so event handlers are totally separate.
The output order becomes: 1 -> 2 -> nested.