[WIP] Fix headless loading of blocks

This commit is contained in:
Evan W. Patton
2016-11-08 12:29:59 -05:00
parent 189f87b32e
commit ac090cac09
6 changed files with 20 additions and 57 deletions

View File

@@ -417,10 +417,12 @@ Blockly.Xml.domToBlockHeadless_ = function(xmlBlock, workspace) {
// Custom data for an advanced block.
if (block.domToMutation) {
block.domToMutation(xmlChild);
/* disabling due to this being _headless_
if (block.initSvg) {
// Mutation may have added some elements that need initalizing.
block.initSvg();
}
*/
}
break;
case 'comment':