All tests pass

This commit is contained in:
Rachel Fenichel
2017-12-04 14:29:16 -08:00
parent d1c2401fcf
commit 6bb048d1bb
4 changed files with 10 additions and 22 deletions

View File

@@ -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;
};

View File

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