mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Delete monitor block when variable is deleted
This commit is contained in:
parent
95ca10038b
commit
aa0064948a
3 changed files with 13 additions and 20 deletions
|
@ -189,6 +189,7 @@ class Target extends EventEmitter {
|
|||
if (this.variables.hasOwnProperty(id)) {
|
||||
delete this.variables[id];
|
||||
if (this.runtime) {
|
||||
this.runtime.monitorBlocks.deleteBlock(id);
|
||||
this.runtime.requestRemoveMonitor(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue