This commit is contained in:
Ilya Kantor 2018-10-07 16:03:21 +03:00
parent c2dc7e0de2
commit d40fbffdaa

View file

@ -187,7 +187,7 @@ There's a property `event.eventPhase` that tells us the number of the phase on w
The event handling process:
- When an event happens -- the most nested element where it happens gets labeled as the "target element" (`event.target`).
- Then the event first moves from the document root down the `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way.
- Then the event first moves from the document root down to the `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way.
- Then the event moves 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`.
Each handler can access `event` object properties: