mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-28 23:30:22 -04:00
Some code cleanup.
This commit is contained in:
parent
3f444138db
commit
386045f033
3 changed files with 4 additions and 4 deletions
src/serialization
|
@ -234,7 +234,7 @@ const parseScratchObject = function (object, runtime, extensions, topLevel) {
|
|||
const newVariable = new Variable(
|
||||
getVariableId(variable.name),
|
||||
variable.name,
|
||||
'',
|
||||
Variable.SCALAR_TYPE,
|
||||
variable.isPersistent
|
||||
);
|
||||
newVariable.value = variable.value;
|
||||
|
@ -254,7 +254,7 @@ const parseScratchObject = function (object, runtime, extensions, topLevel) {
|
|||
const newVariable = new Variable(
|
||||
getVariableId(list.listName),
|
||||
list.listName,
|
||||
'list',
|
||||
Variable.LIST_TYPE,
|
||||
list.isPersistent
|
||||
);
|
||||
newVariable.value = list.contents;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue