mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
[WIP] Fix headless loading of blocks
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user