From 6055823f203a696165084b873e661713806583ec Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Wed, 25 Mar 2020 17:51:08 +0900 Subject: [PATCH] Reset answer when runtime gets disposed --- src/blocks/scratch3_sensing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blocks/scratch3_sensing.js b/src/blocks/scratch3_sensing.js index 8dbd95d6c..2b031307c 100644 --- a/src/blocks/scratch3_sensing.js +++ b/src/blocks/scratch3_sensing.js @@ -44,6 +44,7 @@ class Scratch3SensingBlocks { this.runtime.on('PROJECT_START', this._resetAnswer.bind(this)); this.runtime.on('PROJECT_STOP_ALL', this._clearAllQuestions.bind(this)); this.runtime.on('STOP_FOR_TARGET', this._clearTargetQuestions.bind(this)); + this.runtime.on('RUNTIME_DISPOSED', this._resetAnswer.bind(this)); } /**