Merge pull request #580 from ProSr/master

Fixed that minor issue ;)
This commit is contained in:
Ilya Kantor 2018-11-03 19:32:56 +03:00 committed by GitHub
commit e8517338a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View file

@ -96,7 +96,7 @@ The full HTML page with these frameworks and `pow` spec:
```html src="index.html" ```html src="index.html"
``` ```
The page can be divided into four parts: The page can be divided into five parts:
1. The `<head>` -- add third-party libraries and styles for tests. 1. The `<head>` -- add third-party libraries and styles for tests.
2. The `<script>` with the function to test, in our case -- with the code for `pow`. 2. The `<script>` with the function to test, in our case -- with the code for `pow`.

View file

@ -9,7 +9,7 @@ Clock.prototype._render = function() {
if (hours < 10) hours = '0' + hours; if (hours < 10) hours = '0' + hours;
let mins = date.getMinutes(); let mins = date.getMinutes();
if (mins < 10) min = '0' + mins; if (mins < 10) mins = '0' + mins;
let secs = date.getSeconds(); let secs = date.getSeconds();
if (secs < 10) secs = '0' + secs; if (secs < 10) secs = '0' + secs;

View file

@ -9,7 +9,7 @@ function Clock({ template }) {
if (hours < 10) hours = '0' + hours; if (hours < 10) hours = '0' + hours;
let mins = date.getMinutes(); let mins = date.getMinutes();
if (mins < 10) min = '0' + mins; if (mins < 10) mins = '0' + mins;
let secs = date.getSeconds(); let secs = date.getSeconds();
if (secs < 10) secs = '0' + secs; if (secs < 10) secs = '0' + secs;

View file

@ -10,7 +10,7 @@ class Clock {
if (hours < 10) hours = '0' + hours; if (hours < 10) hours = '0' + hours;
let mins = date.getMinutes(); let mins = date.getMinutes();
if (mins < 10) min = '0' + mins; if (mins < 10) mins = '0' + mins;
let secs = date.getSeconds(); let secs = date.getSeconds();
if (secs < 10) secs = '0' + secs; if (secs < 10) secs = '0' + secs;

View file

@ -11,7 +11,7 @@ Clock.prototype._render = function() {
if (hours < 10) hours = '0' + hours; if (hours < 10) hours = '0' + hours;
let mins = date.getMinutes(); let mins = date.getMinutes();
if (mins < 10) min = '0' + mins; if (mins < 10) mins = '0' + mins;
let secs = date.getSeconds(); let secs = date.getSeconds();
if (secs < 10) secs = '0' + secs; if (secs < 10) secs = '0' + secs;

View file

@ -10,7 +10,7 @@ class Clock {
if (hours < 10) hours = '0' + hours; if (hours < 10) hours = '0' + hours;
let mins = date.getMinutes(); let mins = date.getMinutes();
if (mins < 10) min = '0' + mins; if (mins < 10) mins = '0' + mins;
let secs = date.getSeconds(); let secs = date.getSeconds();
if (secs < 10) secs = '0' + secs; if (secs < 10) secs = '0' + secs;

View file

@ -10,7 +10,7 @@ class Clock {
if (hours < 10) hours = '0' + hours; if (hours < 10) hours = '0' + hours;
let mins = date.getMinutes(); let mins = date.getMinutes();
if (mins < 10) min = '0' + mins; if (mins < 10) mins = '0' + mins;
let secs = date.getSeconds(); let secs = date.getSeconds();
if (secs < 10) secs = '0' + secs; if (secs < 10) secs = '0' + secs;

View file

@ -255,7 +255,7 @@ The syntax is:
throw <error object> throw <error object>
``` ```
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). 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).
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. 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.

View file

@ -60,7 +60,7 @@ These properties are rarely needed, but still they are the "most outer" geometry
The `offsetParent` is the nearest ancestor that is: The `offsetParent` is the nearest ancestor that is:
1. CSS-positioned (`position` is `absolute`, `relative` or `fixed`), 1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`),
2. or `<td>`, `<th>`, `<table>`, 2. or `<td>`, `<th>`, `<table>`,
2. or `<body>`. 2. or `<body>`.

View file

@ -101,6 +101,6 @@ class HoverIntent {
elem.removeEventListener('mousemove', this.onMouseMove); elem.removeEventListener('mousemove', this.onMouseMove);
elem.removeEventListener('mouseover', this.onMouseOver); elem.removeEventListener('mouseover', this.onMouseOver);
elem.removeEventListener('mouseout', this.onMouseOut); elem.removeEventListener('mouseout', this.onMouseOut);
}; }
} }

View file

@ -45,6 +45,6 @@ class HoverIntent {
destroy() { destroy() {
/* your code to "disable" the functionality, remove all handlers */ /* your code to "disable" the functionality, remove all handlers */
}; }
} }