Skip to content

Commit c0bd294

Browse files
authored
Update article.md
Hi, I suggest a typo correction from "the" to "that" found in the summary. - `event.currentTarget` (=`this`) -- the current element <that> handles the event (the one that has the handler on it) I'm new to github, so I'm welcome to any tips on writing better descriptions and proposals. Thanks,
1 parent fb03c7d commit c0bd294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
@@ -193,7 +193,7 @@ The event handling process:
193193
Each handler can access `event` object properties:
194194

195195
- `event.target` -- the deepest element that originated the event.
196-
- `event.currentTarget` (=`this`) -- the current element the handles the event (the one that has the handler on it)
196+
- `event.currentTarget` (=`this`) -- the current element that handles the event (the one that has the handler on it)
197197
- `event.eventPhase` -- the current phase (capturing=1, bubbling=3).
198198

199199
Any event handler can stop the event by calling `event.stopPropagation()`, but that's not recommended, because we can't really be sure we won't need it above, maybe for completely different things.

0 commit comments

Comments
 (0)