mirror of
https://github.com/google/blockly.git
synced 2026-01-29 03:30:13 +01:00
Fix illegal connections in stacks after a healing delete (issue 15).
This commit is contained in:
@@ -427,7 +427,7 @@ Blockly.Block.prototype.unplug = function(healStack, bump) {
|
||||
// Disconnect the next statement.
|
||||
var nextTarget = this.nextConnection.targetConnection;
|
||||
nextBlock.setParent(null);
|
||||
if (previousTarget) {
|
||||
if (previousTarget && previousTarget.checkType_(nextTarget)) {
|
||||
// Attach the next statement to the previous statement.
|
||||
previousTarget.connect(nextTarget);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user