Swap order of arguments on domToWorkspace.

This commit is contained in:
Neil Fraser
2016-04-04 18:31:41 -07:00
parent 4ac1204550
commit 4e42a1b78e
17 changed files with 53 additions and 39 deletions

View File

@@ -110,7 +110,7 @@
}
// Create a headless workspace.
var workspace = new Blockly.Workspace();
Blockly.Xml.domToWorkspace(workspace, xml);
Blockly.Xml.domToWorkspace(xml, workspace);
var code = Blockly.Python.workspaceToCode(workspace);
document.getElementById('code_output').value = code;
}