Merge pull request #1150 from Doesntmeananything/patch-1
Add stylistic and grammar fixes
This commit is contained in:
commit
e5321b43ce
1 changed files with 2 additions and 2 deletions
|
@ -69,13 +69,13 @@ For instance, if we have a single handler `form.onclick`, then it can "catch" al
|
||||||
In `form.onclick` handler:
|
In `form.onclick` handler:
|
||||||
|
|
||||||
- `this` (`=event.currentTarget`) is the `<form>` element, because the handler runs on it.
|
- `this` (`=event.currentTarget`) is the `<form>` element, because the handler runs on it.
|
||||||
- `event.target` is the concrete element inside the form that actually was clicked.
|
- `event.target` is the actual element inside the form that was clicked.
|
||||||
|
|
||||||
Check it out:
|
Check it out:
|
||||||
|
|
||||||
[codetabs height=220 src="bubble-target"]
|
[codetabs height=220 src="bubble-target"]
|
||||||
|
|
||||||
It's possible that `event.target` equals `this` -- when the click is made directly on the `<form>` element.
|
It's possible that `event.target` could equal `this` -- it happens when the click is made directly on the `<form>` element.
|
||||||
|
|
||||||
## Stopping bubbling
|
## Stopping bubbling
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue