Skip to content

Commit 9f2d40e

Browse files
committed
Merge branch 'master' of github.com:javascript-tutorial/en.javascript.info into sync-e515f80a
2 parents dbf0b77 + e515f80 commit 9f2d40e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

1-js/12-generators-iterators/1-generators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ generator.next(4); // --> pass the result into the generator
343343

344344
![](genYield2.svg)
345345

346-
1. The first call `generator.next()` is always without an argument. It starts the execution and returns the result of the first `yield "2+2=?"`. At this point the generator pauses the execution (still on that line).
346+
1. The first call `generator.next()` should be always made without an argument (the argument is ignored if passed). It starts the execution and returns the result of the first `yield "2+2=?"`. At this point the generator pauses the execution, while staying on the line `(*)`.
347347
2. Then, as shown at the picture above, the result of `yield` gets into the `question` variable in the calling code.
348348
3. On `generator.next(4)`, the generator resumes, and `4` gets in as the result: `let result = 4`.
349349

2-ui/2-events/01-introduction-browser-events/07-carousel/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The images ribbon can be represented as `ul/li` list of images `<img>`.
22

3-
Normally, such a ribbon is wide, but we put a fixed-size `<div>` around to "cut" it, so that only a part of the ribbon is visibble:
3+
Normally, such a ribbon is wide, but we put a fixed-size `<div>` around to "cut" it, so that only a part of the ribbon is visible:
44

55
![](carousel1.svg)
66

2-ui/2-events/02-bubbling-and-capturing/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ For instance, if we have a single handler `form.onclick`, then it can "catch" al
6868

6969
In `form.onclick` handler:
7070

71-
- `this` (`=event.currentTarget`) is the `<form>` element, because the handler runs on it.
71+
- `this` (=`event.currentTarget`) is the `<form>` element, because the handler runs on it.
7272
- `event.target` is the actual element inside the form that was clicked.
7373

7474
Check it out:
@@ -102,7 +102,7 @@ To stop the bubbling and prevent handlers on the current element from running, t
102102
```
103103

104104
```warn header="Don't stop bubbling without a need!"
105-
Bubbling is convenient. Don't stop it without a real need: obvious and architecturally well-thought.
105+
Bubbling is convenient. Don't stop it without a real need: obvious and architecturally well thought out.
106106
107107
Sometimes `event.stopPropagation()` creates hidden pitfalls that later may become problems.
108108

0 commit comments

Comments
 (0)