Give persistent block ids to variables in the flyout

This commit is contained in:
Ray Schamp 2017-06-02 09:32:44 -04:00
parent f6d82d609c
commit e92c5f5325

View file

@ -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');