mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-07-25 21:29:25 -04:00
Give persistent block ids to variables in the flyout
This commit is contained in:
parent
f6d82d609c
commit
e92c5f5325
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ Blockly.Variables.flyoutCategory = function(workspace) {
|
|||
var block = goog.dom.createDom('block');
|
||||
block.setAttribute('type', 'data_variable');
|
||||
block.setAttribute('gap', 8);
|
||||
block.setAttribute('id', 'VAR_' + variableModelList[i].name);
|
||||
|
||||
var field = goog.dom.createDom('field', null, variableModelList[i].name);
|
||||
field.setAttribute('name', 'VARIABLE');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue