summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/developers/guidelines-frontend.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/doc/developers/guidelines-frontend.md')
-rw-r--r--docs/content/doc/developers/guidelines-frontend.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/doc/developers/guidelines-frontend.md b/docs/content/doc/developers/guidelines-frontend.md
index 8bd0ee0482..9fec5bd17e 100644
--- a/docs/content/doc/developers/guidelines-frontend.md
+++ b/docs/content/doc/developers/guidelines-frontend.md
@@ -83,7 +83,7 @@ el.addEventListener('click', (e) => {
el.addEventListener('async', async (e) => { // not recommended but acceptable
e.preventDefault(); // acceptable
- await asyncFoo(); // skip out event dispath
+ await asyncFoo(); // skip out event dispatch
e.preventDefault(); // WRONG
});
```
@@ -106,7 +106,7 @@ $('#el').on('click', (e) => {
$('#el').on('click', async (e) => { // not recommended but acceptable
e.preventDefault(); // acceptable
return false; // WRONG, jQuery expects the returned value is a boolean, not a Promise
- await asyncFoo(); // skip out event dispath
+ await asyncFoo(); // skip out event dispatch
return false; // WRONG
});
```