Skip to content

Commit 9cff773

Browse files
committed
Fix some tasks having an onExecute method that is not async
1 parent 973a448 commit 9cff773

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/js/src/manager/screen/_TextAndGraphicUpdateOperation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class _TextAndGraphicUpdateOperation extends _Task {
6666
* The method that causes the task to run.
6767
* @param {_Task} task - The task instance
6868
*/
69-
onExecute (task) {
70-
this._start();
69+
async onExecute (task) {
70+
await this._start();
7171
}
7272
/**
7373
* If the task is not canceled, starts to assemble the show

lib/js/src/manager/screen/menu/_MenuConfigurationUpdateOperation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class _MenuConfigurationUpdateOperation extends _Task {
5353
* The method that causes the task to run.
5454
* @param {_Task} task - The task instance
5555
*/
56-
onExecute (task) {
57-
this._start();
56+
async onExecute (task) {
57+
await this._start();
5858
}
5959

6060
/**

lib/js/src/manager/screen/menu/_MenuShowOperation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class _MenuShowOperation extends _Task {
4949
* The method that causes the task to run.
5050
* @param {_Task} task - The task instance
5151
*/
52-
onExecute (task) {
53-
this._start();
52+
async onExecute (task) {
53+
await this._start();
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)