diff --git a/core/block.js b/core/block.js index 32262446c..ebfcf736d 100644 --- a/core/block.js +++ b/core/block.js @@ -369,7 +369,7 @@ Blockly.Block.prototype.unplugFromRow_ = function(opt_healStack) { * @private */ Blockly.Block.prototype.getOnlyValueConnection_ = function() { - var connection = false; + var connection = null; for (var i = 0; i < this.inputList.length; i++) { var thisConnection = this.inputList[i].connection; if (thisConnection && thisConnection.type == Blockly.INPUT_VALUE) {