event-loop

This commit is contained in:
Ilya Kantor 2019-06-29 00:32:35 +03:00
parent d1190aae21
commit f018012168
12 changed files with 378 additions and 305 deletions

View file

@ -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>
```