Merge pull request #1 from mohsen1/patch-1

Use `this` in AppState constructor for updating timer
This commit is contained in:
Michel Weststrate 2016-02-28 09:01:03 +01:00
commit 5811e32f94

View file

@ -11,7 +11,7 @@ class AppState {
constructor() {
setInterval(() => {
appState.timer += 1;
this.timer += 1;
}, 1000);
}