From 5938c6df3bc400918e882b70c1249590db6bb2d7 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Fri, 30 Nov 2018 14:34:14 -0800 Subject: [PATCH] Fix #2131 --- core/connection.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/connection.js b/core/connection.js index 11d26cbd4..990be154c 100644 --- a/core/connection.js +++ b/core/connection.js @@ -360,12 +360,7 @@ Blockly.Connection.prototype.canConnectToPrevious_ = function(candidate) { var isFirstStatementConnection = this == firstStatementConnection; var isNextConnection = this == this.sourceBlock_.nextConnection; - // Complex blocks with no previous connection will not be allowed to connect - // mid-stack. - var sourceHasPreviousConn = this.sourceBlock_.previousConnection != null; - - if (isNextConnection || - (isFirstStatementConnection && !sourceHasPreviousConn)) { + if (isNextConnection || isFirstStatementConnection) { // If the candidate is the first connection in a stack, we can connect. if (!candidate.targetConnection) { return true;