event-loop
This commit is contained in:
parent
d1190aae21
commit
f018012168
12 changed files with 378 additions and 305 deletions
|
@ -233,7 +233,7 @@ For instance, here the nested `menu-open` event is processed synchronously, duri
|
|||
alert(2);
|
||||
};
|
||||
|
||||
document.addEventListener('menu-open', () => alert('nested'))
|
||||
document.addEventListener('menu-open', () => alert('nested'));
|
||||
</script>
|
||||
```
|
||||
|
||||
|
@ -259,7 +259,7 @@ If we don't like it, we can either put the `dispatchEvent` (or other event-trigg
|
|||
alert(2);
|
||||
};
|
||||
|
||||
document.addEventListener('menu-open', () => alert('nested'))
|
||||
document.addEventListener('menu-open', () => alert('nested'));
|
||||
</script>
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue