closes #1794
This commit is contained in:
parent
d2ac997f1c
commit
6ec3f34e2b
2 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
class ExtendedClock extends Clock {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
let { precision=1000 } = options;
|
||||
let { precision = 1000 } = options;
|
||||
this.precision = precision;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
importance: 5
|
||||
importance: 3
|
||||
|
||||
---
|
||||
|
||||
|
@ -32,12 +32,11 @@ Here's an example of such code (it doesn't work -- why? fix it?):
|
|||
```js
|
||||
class Rabbit extends Object {
|
||||
constructor(name) {
|
||||
super();
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
let rabbit = new Rabbit("Rab");
|
||||
|
||||
alert( rabbit.hasOwnProperty('name') ); // true
|
||||
alert( rabbit.hasOwnProperty('name') ); // Error
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue