Skip to content

Commit

Permalink
reset latest
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Nov 8, 2019
1 parent 5a6e69e commit c8fc8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Timer {
}

reset() {
this.latest = null;
this.times = [0, 0, 0];
this.print();
this.pause();
Expand All @@ -44,8 +43,8 @@ class Timer {
}
if (this.times[0] > 0 || this.times[1] > 3) {
this.record();
this.restart();
}
this.restart();
}

press() {
Expand All @@ -57,6 +56,7 @@ class Timer {
}

clear() {
this.latest = null;
this.records = [];
this.limit = [4, 0, 0];
this.reset();
Expand Down

0 comments on commit c8fc8d4

Please sign in to comment.