Skip to content

Commit a10d94d

Browse files
authored
Merge pull request #2218 from aruku/aruku-patch-1
One addition and one fix
2 parents 3897d24 + ad3a7cc commit a10d94d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

2-ui/2-events/02-bubbling-and-capturing/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ When an event happens -- the most nested element where it happens gets labeled a
206206
207207
- 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}`).
208208
- Then handlers are called on the target element itself.
209-
- Then the event bubbles up from `event.target` to the root, calling handlers assigned using `on<event>` and `addEventListener` without the 3rd argument or with the 3rd argument `false/{capture:false}`.
209+
- Then the event bubbles up from `event.target` to the root, calling handlers assigned using `on<event>`, HTML attributes and `addEventListener` without the 3rd argument or with the 3rd argument `false/{capture:false}`.
210210
211211
Each handler can access `event` object properties:
212212

2-ui/2-events/03-event-delegation/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Capturing and bubbling allow us to implement one of most powerful event handling
55

66
The idea is that if we have a lot of elements handled in a similar way, then instead of assigning a handler to each of them -- we put a single handler on their common ancestor.
77

8-
In the handler we get `event.target`, see where the event actually happened and handle it.
8+
In the handler we get `event.target` to see where the event actually happened and handle it.
99

1010
Let's see an example -- the [Ba-Gua diagram](http://en.wikipedia.org/wiki/Ba_gua) reflecting the ancient Chinese philosophy.
1111

0 commit comments

Comments
 (0)