mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00:00
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>
This commit is contained in:
@@ -83,7 +83,7 @@ el.addEventListener('click', (e) => {
|
|||||||
|
|
||||||
el.addEventListener('async', async (e) => { // not recommended but acceptable
|
el.addEventListener('async', async (e) => { // not recommended but acceptable
|
||||||
e.preventDefault(); // acceptable
|
e.preventDefault(); // acceptable
|
||||||
await asyncFoo(); // skip out event dispath
|
await asyncFoo(); // skip out event dispatch
|
||||||
e.preventDefault(); // WRONG
|
e.preventDefault(); // WRONG
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
@@ -106,7 +106,7 @@ $('#el').on('click', (e) => {
|
|||||||
$('#el').on('click', async (e) => { // not recommended but acceptable
|
$('#el').on('click', async (e) => { // not recommended but acceptable
|
||||||
e.preventDefault(); // acceptable
|
e.preventDefault(); // acceptable
|
||||||
return false; // WRONG, jQuery expects the returned value is a boolean, not a Promise
|
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
|
return false; // WRONG
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user