Ignore whether parent has multiple inputs

This commit is contained in:
Rachel Fenichel
2018-08-06 11:18:00 -07:00
parent a8d52903e2
commit b89487e332
2 changed files with 1 additions and 7 deletions

View File

@@ -340,12 +340,6 @@ Blockly.Block.prototype.unplugFromRow_ = function(opt_healStack) {
return;
}
var parentBlock = parentConnection.getSourceBlock();
if (parentConnection != parentBlock.getOnlyValueConnection_()) {
// Too many or too few possible connections on the parent.
return;
}
var thisConnection = this.getOnlyValueConnection_();
if (!thisConnection || !thisConnection.isConnected()) {
// Too many or too few possible connections on this block, or there's

View File

@@ -217,7 +217,7 @@ function test_block_row_unplug_multi_inputs_parent() {
// Parent block has multiple inputs.
blocks.B.unplug(true);
assertUnpluggedNoheal(blocks);
assertUnpluggedHealed(blocks);
} finally {
blockTest_tearDown();
}