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

@@ -128,7 +128,7 @@ function fromXml(xmlText) {
alert('Error parsing XML:\n' + e);
return;
}
Blockly.Xml.domToWorkspace(workspace, xmlDoc);
Blockly.Xml.domToWorkspace(xmlDoc, workspace);
}
function setOutput(text) {

View File

@@ -118,7 +118,7 @@ function toXml() {
function fromXml() {
var input = document.getElementById('importExport');
var xml = Blockly.Xml.textToDom(input.value);
Blockly.Xml.domToWorkspace(workspace, xml);
Blockly.Xml.domToWorkspace(xml, workspace);
taChange();
}
@@ -188,7 +188,7 @@ function spaghetti(n) {
xml = '<xml xmlns="http://www.w3.org/1999/xhtml">' + xml + '</xml>';
var dom = Blockly.Xml.textToDom(xml);
console.time('Spaghetti domToWorkspace');
Blockly.Xml.domToWorkspace(workspace, dom);
Blockly.Xml.domToWorkspace(dom, workspace);
console.timeEnd('Spaghetti domToWorkspace');
}
var spaghettiXml = [