Reset answer when runtime gets disposed

This commit is contained in:
apple502j 2020-03-25 17:51:08 +09:00 committed by GitHub
parent 3c5fa3a7b2
commit 6055823f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}
/**