From ede4d3630b6f65a927e888a1f57acf52896cea19 Mon Sep 17 00:00:00 2001 From: kozbial Date: Tue, 17 Aug 2021 09:28:15 -0700 Subject: [PATCH] Migrate core/renderers/zelos/measurables/rows.js to ES6 const/let --- core/renderers/zelos/measurables/top_row.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/renderers/zelos/measurables/top_row.js b/core/renderers/zelos/measurables/top_row.js index a1817801a..3f4dbafa8 100644 --- a/core/renderers/zelos/measurables/top_row.js +++ b/core/renderers/zelos/measurables/top_row.js @@ -49,7 +49,7 @@ Blockly.zelos.TopRow.prototype.endsWithElemSpacer = function() { * @override */ Blockly.zelos.TopRow.prototype.hasLeftSquareCorner = function(block) { - var hasHat = (block.hat ? + const hasHat = (block.hat ? block.hat === 'cap' : this.constants_.ADD_START_HATS) && !block.outputConnection && !block.previousConnection; return !!block.outputConnection || hasHat;