mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
35 lines
1.5 KiB
Plaintext
35 lines
1.5 KiB
Plaintext
***************
|
|
*** 342,348 ****
|
|
}
|
|
if (firstRealGrandchild &&
|
|
firstRealGrandchild.nodeName.toLowerCase() == 'block') {
|
|
- blockChild = Blockly.Xml.domToBlock(workspace, firstRealGrandchild,
|
|
opt_reuseBlock);
|
|
if (blockChild.outputConnection) {
|
|
input.connection.connect(blockChild.outputConnection);
|
|
--- 415,421 ----
|
|
}
|
|
if (firstRealGrandchild &&
|
|
firstRealGrandchild.nodeName.toLowerCase() == 'block') {
|
|
+ blockChild = Blockly.Xml.domToBlockInner(workspace, firstRealGrandchild,
|
|
opt_reuseBlock);
|
|
if (blockChild.outputConnection) {
|
|
input.connection.connect(blockChild.outputConnection);
|
|
***************
|
|
*** 362,368 ****
|
|
// This could happen if there is more than one XML 'next' tag.
|
|
throw 'Next statement is already connected.';
|
|
}
|
|
- blockChild = Blockly.Xml.domToBlock(workspace, firstRealGrandchild,
|
|
opt_reuseBlock);
|
|
if (!blockChild.previousConnection) {
|
|
throw 'Next block does not have previous statement.';
|
|
--- 435,441 ----
|
|
// This could happen if there is more than one XML 'next' tag.
|
|
throw 'Next statement is already connected.';
|
|
}
|
|
+ blockChild = Blockly.Xml.domToBlockInner(workspace, firstRealGrandchild,
|
|
opt_reuseBlock);
|
|
if (!blockChild.previousConnection) {
|
|
throw 'Next block does not have previous statement.';
|