Update article.md

This commit is contained in:
Ilya Kantor 2019-07-18 11:15:33 +03:00 committed by GitHub
parent 64197a0955
commit 0b55d45daf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ We can call `event.preventDefault()` on a script-generated event if `cancelable:
Of course, for custom events, with names unknown for the browser, there are no "default browser actions". But our code may plan its own actions after `dispatchEvent`.
The call of `event.preventDefault()` is a way for the handler to send a signal that those actions should be canceled .
The call of `event.preventDefault()` is a way for the handler to send a signal that those actions should be canceled.
In that case the call to `elem.dispatchEvent(event)` returns `false`. And the event-generating code knows that the processing shouldn't continue.