Fix spacing in code sample.

This commit is contained in:
Bryce Johnson 2016-11-01 20:40:01 +01:00
parent 7f0ac04db5
commit 2159c8792b
1 changed files with 5 additions and 3 deletions

View File

@ -227,14 +227,15 @@ class MyThing {
gl.MyThing = new MyThing();
// best
let singleton;
class MyThing {
constructor() {
if (!singleton) {
singleton = this;
singleton.init();
}
singleton = this;
singleton.init();
}
return singleton;
}
@ -246,6 +247,7 @@ class MyThing {
}
gl.MyThing = MyThing;
```
## Supported browsers