This commit is contained in:
Ilya Kantor 2017-06-14 10:36:02 +03:00
commit 2f0261b375
27 changed files with 42 additions and 42 deletions

View file

@ -78,7 +78,7 @@ If we omit `return false`, then after our code executes the browser will do its
By the way, using event delegation here makes our menu flexible. We can add nested lists and style them using CSS to "slide down".
## Prevent futher events
## Prevent further events
Certain events flow one into another. If we prevent the first event, there will be no second.

View file

@ -279,7 +279,7 @@ For custom events we should use `CustomEvent` constructor. It has an additional
Despite the technical possibility to generate browser events like `click` or `keydown`, we should use with the great care.
We shouldn't generate browser events as a hacky way to run handlers. That's a bad architecture most of the time.
We shouldn't generate browser events as it's a hacky way to run handlers. That's a bad architecture most of the time.
Native events might be generated: