mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Ignore whether parent has multiple inputs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user