Commit dd066dbe authored by wildfirecode13's avatar wildfirecode13

1

parent a70dd304
......@@ -70,6 +70,7 @@ var Countdown = /** @class */ (function (_super) {
this.emit("complete");
};
Countdown.prototype.reset = function ($seconds) {
clearInterval(this._timer);
this._counter = 0;
this._seconds = $seconds;
};
......
......@@ -64,6 +64,7 @@ export class Countdown extends EventEmitter<any> {
}
reset($seconds: number) {
clearInterval(this._timer);
this._counter = 0;
this._seconds = $seconds;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment