scratch-blocks 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scratch-blocks",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Scratch Blocks is a library for building creative computing interfaces.",
5
5
  "author": "Massachusetts Institute of Technology",
6
6
  "license": "Apache-2.0",
@@ -615,7 +615,7 @@ const RENAME_OPTION_CALLBACK_FACTORY = function (block: Blockly.Block, fieldName
615
615
  return () => {
616
616
  const workspace = block.workspace
617
617
  const variable = (block.getField(fieldName) as ScratchFieldVariable).getVariable() as ScratchVariableModel
618
- renameVariable(workspace as Blockly.WorkspaceSvg, variable)
618
+ renameVariable(workspace, variable)
619
619
  }
620
620
  }
621
621