Skip to content

Commit 45787b1

Browse files
committed
Reset everything to 0 after countdown stopped.
1 parent 961ff5c commit 45787b1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/js/timer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ angular.module('timer', [])
109109
if ($scope.millis < 0) {
110110
$scope.stop();
111111
$scope.millis = 0;
112+
calculateTimeUnits();
112113
return;
113114
}
114115
calculateTimeUnits();

dist/angular-timer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ angular.module('timer', [])
116116
if ($scope.millis < 0) {
117117
$scope.stop();
118118
$scope.millis = 0;
119+
calculateTimeUnits();
119120
return;
120121
}
121122
calculateTimeUnits();

dist/angular-timer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)