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,
This commit is contained in:
parent
fb03c7d539
commit
c0bd294cd7
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ The event handling process:
|
|||
Each handler can access `event` object properties:
|
||||
|
||||
- `event.target` -- the deepest element that originated the event.
|
||||
- `event.currentTarget` (=`this`) -- the current element the handles the event (the one that has the handler on it)
|
||||
- `event.currentTarget` (=`this`) -- the current element that handles the event (the one that has the handler on it)
|
||||
- `event.eventPhase` -- the current phase (capturing=1, bubbling=3).
|
||||
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue