mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-30 23:23:55 -04:00
Cleanly handle deleting running scripts (#162)
* Cleanly handle deleting running scripts * Turn off glow request on retire thread; add null check
This commit is contained in:
parent
9b4433069e
commit
8987330853
4 changed files with 28 additions and 1 deletions
src/engine
|
@ -185,6 +185,10 @@ Blocks.prototype.blocklyListen = function (e, isFlyout, opt_runtime) {
|
|||
if (this._blocks[e.blockId].shadow) {
|
||||
return;
|
||||
}
|
||||
// Inform any runtime to forget about glows on this script.
|
||||
if (opt_runtime && this._blocks[e.blockId].topLevel) {
|
||||
opt_runtime.quietGlow(e.blockId);
|
||||
}
|
||||
this.deleteBlock({
|
||||
id: e.blockId
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue