Fix hidden bubbles not resetting on stop

This commit is contained in:
Paul Kaplan 2018-06-28 16:44:33 -04:00
parent 326c41875e
commit a6a29a5437

View file

@ -107,6 +107,8 @@ class Scratch3LooksBlocks {
*/ */
_onResetBubbles () { _onResetBubbles () {
for (let n = 0; n < this.runtime.targets.length; n++) { for (let n = 0; n < this.runtime.targets.length; n++) {
const bubbleState = this._getBubbleState(this.runtime.targets[n]);
bubbleState.text = '';
this._onTargetWillExit(this.runtime.targets[n]); this._onTargetWillExit(this.runtime.targets[n]);
} }
clearTimeout(this._bubbleTimeout); clearTimeout(this._bubbleTimeout);