mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-15 07:51:04 -04:00
Fix block events for flyout blocks
This commit is contained in:
parent
dbb31462ad
commit
0efe7e2b27
1 changed files with 3 additions and 3 deletions
|
@ -73,11 +73,11 @@ function VirtualMachine () {
|
|||
var newBlocks = adapter(e);
|
||||
// A create event can create many blocks. Add them all.
|
||||
for (var i = 0; i < newBlocks.length; i++) {
|
||||
instance.runtime.createBlock(newBlocks[i], true);
|
||||
instance.blocks.createBlock(newBlocks[i], true);
|
||||
}
|
||||
break;
|
||||
case 'change':
|
||||
instance.runtime.changeBlock({
|
||||
instance.blocks.changeBlock({
|
||||
id: e.blockId,
|
||||
element: e.element,
|
||||
name: e.name,
|
||||
|
@ -85,7 +85,7 @@ function VirtualMachine () {
|
|||
});
|
||||
break;
|
||||
case 'delete':
|
||||
instance.runtime.deleteBlock({
|
||||
instance.blocks.deleteBlock({
|
||||
id: e.blockId
|
||||
});
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue