the right quots is mission in blockToXML

the right quote is mission in blockToXML, and it will result in the following code execution errors

        vm.on('workspaceUpdate', function (data) {
            workspace.clear();
            var dom = Blockly.Xml.textToDom(data.xml);
            Blockly.Xml.domToWorkspace(dom, workspace);
        });
This commit is contained in:
john authored and GitHub committed 2017-04-21 16:36:33 +08:00
1 parent a1c1e8f7ba
commit e91865fc21
1 file changed
+1 -1
+1 -1
View File
@@ -407,7 +407,7 @@ class Blocks {
id="${block.id}"
type="${block.opcode}"
${block.topLevel ?
`x="${block.x} y="${block.y}` :
`x="${block.x}" y="${block.y}"` :
''
}
>`;