From 0b55d45daf968cf40bc8f6ddc65c990ab5b9b83c Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 18 Jul 2019 11:15:33 +0300 Subject: [PATCH] Update article.md --- 2-ui/2-events/05-dispatch-events/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/2-events/05-dispatch-events/article.md b/2-ui/2-events/05-dispatch-events/article.md index dbe62302..ce046b73 100644 --- a/2-ui/2-events/05-dispatch-events/article.md +++ b/2-ui/2-events/05-dispatch-events/article.md @@ -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.