From b89487e332986d72628b138cff36792f853e1521 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Mon, 6 Aug 2018 11:18:00 -0700 Subject: [PATCH] Ignore whether parent has multiple inputs --- core/block.js | 6 ------ tests/jsunit/block_test.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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(); }