Skip to content

Commit fd489d0

Browse files
javier-godoypaodb
authored andcommitted
refactor!: remove default value for startTime
1 parent 58b7aa5 commit fd489d0

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/main/java/com/flowingcode/vaadin/addons/simpletimer/SimpleTimer.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,13 @@
4141
public class SimpleTimer extends Component implements HasSize, HasStyle, Serializable {
4242

4343
private static final long serialVersionUID = 1L;
44-
private static final int START_TIME_S = 60;
4544
private static final String DISPLAY = "display";
4645
private static final String INLINE = "inline";
4746
private static final String CURRENT_TIME = "currentTime";
4847

49-
/** Creates a timer with a start time of 60 */
48+
/** Creates a timer */
5049
public SimpleTimer() {
51-
this(START_TIME_S);
52-
}
53-
54-
/**
55-
* Creates a timer using the start time passed in the constructor
56-
*
57-
* @param startTime value in seconds for the start time
58-
*/
59-
public SimpleTimer(final Number startTime) {
6050
getElement().getStyle().set(DISPLAY, INLINE);
61-
setStartTime(startTime);
6251
}
6352

6453
/**

src/main/resources/META-INF/frontend/simple-timer/simple-timer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ Polymer({
4141
properties: {
4242
/**
4343
* Start time for the timer in seconds
44-
* @default 60
4544
*/
4645
startTime: {
4746
type: Number,
48-
value: 60
47+
value: 0
4948
},
5049
/**
5150
* End time for the timer in seconds

0 commit comments

Comments
 (0)