grammer fixes
- add a definite article before 'outer menu' on line 111 - don't -> won't
This commit is contained in:
parent
1b2d3e8010
commit
4d1bd71204
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ Sometimes `event.stopPropagation()` creates hidden pitfalls that later may becom
|
|||
|
||||
For instance:
|
||||
|
||||
1. We create a nested menu. Each submenu handles clicks on its elements and calls `stopPropagation` so that outer menu don't trigger.
|
||||
1. We create a nested menu. Each submenu handles clicks on its elements and calls `stopPropagation` so that the outer menu won't trigger.
|
||||
2. Later we decide to catch clicks on the whole window, to track users' behavior (where people click). Some analytic systems do that. Usually the code uses `document.addEventListener('click'…)` to catch all clicks.
|
||||
3. Our analytic won't work over the area where clicks are stopped by `stopPropagation`. We've got a "dead zone".
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue