mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
Fix property check of topLevel
in createBlock
This commit is contained in:
parent
f63e261892
commit
fd95d3045d
1 changed files with 2 additions and 2 deletions
|
@ -88,10 +88,10 @@
|
|||
this._blocks[block.id] = block;
|
||||
|
||||
// Push block id to stacks array.
|
||||
// Blocks are added as a top-level stack if they are marked as a topBlock
|
||||
// Blocks are added as a top-level stack if they are marked as a top-block
|
||||
// (if they were top-level XML in the event) and if they are not
|
||||
// flyout blocks.
|
||||
if (!opt_isFlyoutBlock && block.topBlock) {
|
||||
if (!opt_isFlyoutBlock && block.topLevel) {
|
||||
this._addStack(block.id);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue