Skip to content

Commit e851733

Browse files
authored
Merge pull request #580 from ProSr/master
Fixed that minor issue ;)
2 parents 7dc720f + f488185 commit e851733

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

1-js/03-code-quality/05-testing-mocha/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The full HTML page with these frameworks and `pow` spec:
9696
```html src="index.html"
9797
```
9898

99-
The page can be divided into four parts:
99+
The page can be divided into five parts:
100100

101101
1. The `<head>` -- add third-party libraries and styles for tests.
102102
2. The `<script>` with the function to test, in our case -- with the code for `pow`.

1-js/07-object-oriented-programming/08-class-patterns/2-rewrite-to-prototypes/solution.view/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Clock.prototype._render = function() {
99
if (hours < 10) hours = '0' + hours;
1010

1111
let mins = date.getMinutes();
12-
if (mins < 10) min = '0' + mins;
12+
if (mins < 10) mins = '0' + mins;
1313

1414
let secs = date.getSeconds();
1515
if (secs < 10) secs = '0' + secs;

1-js/07-object-oriented-programming/08-class-patterns/2-rewrite-to-prototypes/source.view/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function Clock({ template }) {
99
if (hours < 10) hours = '0' + hours;
1010

1111
let mins = date.getMinutes();
12-
if (mins < 10) min = '0' + mins;
12+
if (mins < 10) mins = '0' + mins;
1313

1414
let secs = date.getSeconds();
1515
if (secs < 10) secs = '0' + secs;

1-js/07-object-oriented-programming/09-class/1-rewrite-to-class/solution.view/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Clock {
1010
if (hours < 10) hours = '0' + hours;
1111

1212
let mins = date.getMinutes();
13-
if (mins < 10) min = '0' + mins;
13+
if (mins < 10) mins = '0' + mins;
1414

1515
let secs = date.getSeconds();
1616
if (secs < 10) secs = '0' + secs;

1-js/07-object-oriented-programming/09-class/1-rewrite-to-class/source.view/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Clock.prototype._render = function() {
1111
if (hours < 10) hours = '0' + hours;
1212

1313
let mins = date.getMinutes();
14-
if (mins < 10) min = '0' + mins;
14+
if (mins < 10) mins = '0' + mins;
1515

1616
let secs = date.getSeconds();
1717
if (secs < 10) secs = '0' + secs;

1-js/07-object-oriented-programming/10-class-inheritance/2-clock-class-extended/solution.view/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Clock {
1010
if (hours < 10) hours = '0' + hours;
1111

1212
let mins = date.getMinutes();
13-
if (mins < 10) min = '0' + mins;
13+
if (mins < 10) mins = '0' + mins;
1414

1515
let secs = date.getSeconds();
1616
if (secs < 10) secs = '0' + secs;

1-js/07-object-oriented-programming/10-class-inheritance/2-clock-class-extended/source.view/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Clock {
1010
if (hours < 10) hours = '0' + hours;
1111

1212
let mins = date.getMinutes();
13-
if (mins < 10) min = '0' + mins;
13+
if (mins < 10) mins = '0' + mins;
1414

1515
let secs = date.getSeconds();
1616
if (secs < 10) secs = '0' + secs;

1-js/08-error-handling/1-try-catch/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ The syntax is:
255255
throw <error object>
256256
```
257257
258-
Technically, we can use anything as an error object. That may be even a primitive, like a number or a string, but it's better to use objects, preferrably with `name` and `message` properties (to stay somewhat compatible with built-in errors).
258+
Technically, we can use anything as an error object. That may be even a primitive, like a number or a string, but it's better to use objects, preferably with `name` and `message` properties (to stay somewhat compatible with built-in errors).
259259
260260
JavaScript has many built-in constructors for standard errors: `Error`, `SyntaxError`, `ReferenceError`, `TypeError` and others. We can use them to create error objects as well.
261261

2-ui/1-document/09-size-and-scroll/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ These properties are rarely needed, but still they are the "most outer" geometry
6060
6161
The `offsetParent` is the nearest ancestor that is:
6262
63-
1. CSS-positioned (`position` is `absolute`, `relative` or `fixed`),
63+
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`),
6464
2. or `<td>`, `<th>`, `<table>`,
6565
2. or `<body>`.
6666

2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/solution.view/hoverIntent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ class HoverIntent {
101101
elem.removeEventListener('mousemove', this.onMouseMove);
102102
elem.removeEventListener('mouseover', this.onMouseOver);
103103
elem.removeEventListener('mouseout', this.onMouseOut);
104-
};
104+
}
105105

106106
}

2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view/hoverIntent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ class HoverIntent {
4545

4646
destroy() {
4747
/* your code to "disable" the functionality, remove all handlers */
48-
};
48+
}
4949

5050
}

0 commit comments

Comments
 (0)