Skip to content

Commit 564ba99

Browse files
authored
Merge pull request #1279 from Usa223/patch-9
Update article.md
2 parents 707066c + d10326f commit 564ba99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/2-events/05-dispatch-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ alert(event.clientX); // undefined, неизвестное свойство пр
187187
<button onclick="hide()">Hide()</button>
188188

189189
<script>
190-
// hide() будет вызван автоматически через 2 секунды
190+
// hide() будет вызван при щелчке на кнопке
191191
function hide() {
192192
let event = new CustomEvent("hide", {
193193
cancelable: true // без этого флага preventDefault не сработает

0 commit comments

Comments
 (0)