diff --git a/core/block.js b/core/block.js index 4e7f65299..d73336697 100644 --- a/core/block.js +++ b/core/block.js @@ -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 diff --git a/tests/jsunit/block_test.js b/tests/jsunit/block_test.js index 72d4931c5..d7efed435 100644 --- a/tests/jsunit/block_test.js +++ b/tests/jsunit/block_test.js @@ -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(); }