mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50:08 +01:00
Swap order of arguments on domToWorkspace.
This commit is contained in:
@@ -60,7 +60,7 @@ BlocklyStorage.restoreBlocks = function(opt_workspace) {
|
||||
if ('localStorage' in window && window.localStorage[url]) {
|
||||
var workspace = opt_workspace || Blockly.getMainWorkspace();
|
||||
var xml = Blockly.Xml.textToDom(window.localStorage[url]);
|
||||
Blockly.Xml.domToWorkspace(workspace, xml);
|
||||
Blockly.Xml.domToWorkspace(xml, workspace);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -181,7 +181,7 @@ BlocklyStorage.loadXml_ = function(xml, workspace) {
|
||||
}
|
||||
// Clear the workspace to avoid merge.
|
||||
workspace.clear();
|
||||
Blockly.Xml.domToWorkspace(workspace, xml);
|
||||
Blockly.Xml.domToWorkspace(xml, workspace);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user