bugfix: event order

+ bug caused by earlier commit making function async
+ small style changes
+ bug on prev - next
This commit is contained in:
cv
2021-04-24 12:46:38 +02:00
parent 75b8e9b8be
commit b95ba56f45
7 changed files with 42 additions and 46 deletions
+7 -7
View File
@@ -80,20 +80,20 @@ class EventTimer extends Timer {
update() {
// if there is nothing selected, no nothing
if (!this.selectedEventId) return;
if (this.selectedEventId == null) return;
super.update();
}
start() {
// if there is nothing selected, no nothing
if (!this.selectedEventId) return;
super.start()
if (this.selectedEventId == null) return;
super.start();
}
pause() {
// if there is nothing selected, no nothing
if (!this.selectedEventId) return;
super.pause()
if (this.selectedEventId == null) return;
super.pause();
}
_setterManager(action, payload) {
@@ -475,7 +475,7 @@ class EventTimer extends Timer {
if (this.numEvents < 1) return;
// if there is no event running, go to first
if (!this.selectedEvent) {
if (this.selectedEvent == null) {
this.goto(0);
return;
}
@@ -490,7 +490,7 @@ class EventTimer extends Timer {
if (this.numEvents < 1) return;
// if there is no event running, go to first
if (!this.selectedEvent) {
if (this.selectedEvent == null) {
this.goto(0);
return;
}