diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2022-01-10 04:32:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 17:32:37 +0800 |
commit | 8c647bf0f6b19fe666c645ec16010d07bfe85a63 (patch) | |
tree | eaa322e1244591b00a36b7d79ce416bd1bd932af /docs | |
parent | 242dddfcb7cfab1d21c1658828d94f603809a5c7 (diff) | |
download | gitea-8c647bf0f6b19fe666c645ec16010d07bfe85a63.tar.gz gitea-8c647bf0f6b19fe666c645ec16010d07bfe85a63.zip |
Fix various typos (#18219)
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon`
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/developers/guidelines-frontend.md | 4 |
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 }); ``` |