We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30e5fd commit 66d7abfCopy full SHA for 66d7abf
src/main/resources/META-INF/frontend/simple-timer/simple-timer.js
@@ -121,10 +121,8 @@ Polymer({
121
ready: function() {
122
if (this.countUp) {
123
this.set('currentTime', 0);
124
- this.set('_formattedTime', '0');
125
} else {
126
this.set('currentTime', this.startTime);
127
- this.set('_formattedTime', this.startTime.toString());
128
}
129
},
130
@@ -175,6 +173,9 @@ Polymer({
175
173
if (timeString[0].indexOf('-') === 0) {
176
174
return 0;
177
+ if (timeString.length==1) {
+ timeString.push("00");
178
+ }
179
var seconds = timeString[0];
180
var minutes = seconds / 60 | 0;
181
var hours = minutes / 60 | 0;
0 commit comments