Merge pull request #1821 from leviding/patch-8

Fix minor type error, delete unnecessary symbol .
This commit is contained in:
Alexey Pyltsyn 2020-03-29 05:56:27 +03:00 committed by GitHub
commit 0c5d5d2554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ elem.addEventListener("click", e => alert(2));
When an event happens -- the most nested element where it happens gets labeled as the "target element" (`event.target`).
- Then the event moves down from the document root to `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way (`true` is a shorthand for `{capture: true}`).
- Then the event moves down from the document root to `event.target`, calling handlers assigned with `addEventListener(..., true)` on the way (`true` is a shorthand for `{capture: true}`).
- Then handlers are called on the target element itself.
- Then the event bubbles up from `event.target` up to the root, calling handlers assigned using `on<event>` and `addEventListener` without the 3rd argument or with the 3rd argument `false/{capture:false}`.