mirror of
https://github.com/google/blockly.git
synced 2026-01-22 16:27:09 +01:00
All tests pass
This commit is contained in:
@@ -338,12 +338,4 @@ Blockly.Variables.generateVariableFieldXml_ = function(variableModel) {
|
||||
'" variabletype="' + typeString +
|
||||
'">' + variableModel.name + '</field>';
|
||||
return text;
|
||||
// var element = goog.dom.createDom('field');
|
||||
// element.setAttribute('name', 'VAR');
|
||||
// element.setAttribute('variabletype', variableModel.type);
|
||||
// element.setAttribute('id', variableModel.getId());
|
||||
// element.textContent = variableModel.name;
|
||||
|
||||
// var xmlString = Blockly.Xml.domToText(element);
|
||||
// return xmlString;
|
||||
};
|
||||
|
||||
@@ -87,7 +87,6 @@ Blockly.Xml.blockToDomWithXY = function(block, opt_noId) {
|
||||
};
|
||||
|
||||
Blockly.Xml.fieldToDomVariable_ = function(field, workspace) {
|
||||
// Ugh that's not true at all.
|
||||
var id = field.getValue();
|
||||
var variable = workspace.getVariableById(id);
|
||||
if (!variable) {
|
||||
@@ -420,7 +419,6 @@ Blockly.Xml.domToWorkspace = function(xml, workspace) {
|
||||
}
|
||||
Blockly.Field.stopCache();
|
||||
}
|
||||
workspace.updateVariableStore(false);
|
||||
// Re-enable workspace resizing.
|
||||
if (workspace.setResizesEnabled) {
|
||||
workspace.setResizesEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user