GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: don't show scope options when renaming a variable from the varia… · scratchfoundation/scratch-blocks@375e56d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/blocks
    • data.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/blocks/data.js‎

Copy file name to clipboardExpand all lines: src/blocks/data.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import * as Blockly from "blockly/core";
2222
import { Categories } from "../categories.js";
2323
import * as Constants from "../constants.js";
2424
import * as scratchBlocksUtils from "../scratch_blocks_utils.js";
25+
import { renameVariable } from "../variables.js";
2526

2627
Blockly.Blocks["data_variable"] = {
2728
/**
@@ -670,7 +671,7 @@ const RENAME_OPTION_CALLBACK_FACTORY = function (block, fieldName) {
670671
return function () {
671672
var workspace = block.workspace;
672673
var variable = block.getField(fieldName).getVariable();
673-
Blockly.Variables.renameVariable(workspace, variable);
674+
renameVariable(workspace, variable);
674675
};
675676
};
676677

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.