mirror of https://github.com/espruino/BangleApps
Renaming of setTime to setTimer.
parent
fd3401bd23
commit
56a4cd0dff
|
@ -596,7 +596,7 @@ function increaseAlarm(){
|
|||
|
||||
// Set to zero if alarm was disabled before
|
||||
if(!isAlarmEnabled()){
|
||||
WIDGETS["widtmr"].setTime(0);
|
||||
WIDGETS["widtmr"].setTimer(0);
|
||||
}
|
||||
|
||||
WIDGETS["widtmr"].increaseTimer(5);
|
||||
|
|
|
@ -425,7 +425,7 @@ function increaseAlarm(){
|
|||
|
||||
// Set to zero if alarm was disabled before
|
||||
if(!isAlarmEnabled()){
|
||||
WIDGETS["widtmr"].setTime(0);
|
||||
WIDGETS["widtmr"].setTimer(0);
|
||||
}
|
||||
|
||||
WIDGETS["widtmr"].increaseTimer(5);
|
||||
|
|
|
@ -21,7 +21,7 @@ into your own app.
|
|||
The following functions are available:
|
||||
- isStarted() -> boolean
|
||||
- setStarted(boolean) -> void
|
||||
- setTime(t) -> void
|
||||
- setTimer(t) -> void
|
||||
- increaseTimer(int) -> void
|
||||
- decreaseTimer(int) -> void
|
||||
- getRemainingMinutes() -> int
|
||||
|
@ -37,7 +37,7 @@ Bangle.on('touch', function(btn, e){
|
|||
// Set to zero if alarm was disabled before. Otherwise
|
||||
// it starts from the last setting made by the user.
|
||||
if(!isAlarmEnabled()){
|
||||
WIDGETS["widtmr"].setTime(0);
|
||||
WIDGETS["widtmr"].setTimer(0);
|
||||
}
|
||||
|
||||
WIDGETS["widtmr"].increaseTimer(5);
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
}
|
||||
updateSettings();
|
||||
|
||||
}, setTime: function(t){
|
||||
}, setTimer: function(t){
|
||||
settings.minutes = Math.max(0, t);
|
||||
settings.started = t > 0;
|
||||
updateSettings();
|
||||
|
|
Loading…
Reference in New Issue