mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Swap order of arguments on domToWorkspace.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user