This commit is contained in:
Rachel Fenichel
2018-11-30 14:34:14 -08:00
parent 7ec5599829
commit 5938c6df3b

View File

@@ -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;