From fb7bba34916a184761f365d92fbcbbe984f67acc Mon Sep 17 00:00:00 2001 From: kozbial Date: Tue, 13 Jul 2021 15:56:05 -0700 Subject: [PATCH] Migrate core/utils/coordinate.js to ES6 const/let --- core/utils/coordinate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/utils/coordinate.js b/core/utils/coordinate.js index edf513b28..da50f2623 100644 --- a/core/utils/coordinate.js +++ b/core/utils/coordinate.js @@ -63,8 +63,8 @@ Blockly.utils.Coordinate.equals = function(a, b) { * @return {number} The distance between `a` and `b`. */ Blockly.utils.Coordinate.distance = function(a, b) { - var dx = a.x - b.x; - var dy = a.y - b.y; + const dx = a.x - b.x; + const dy = a.y - b.y; return Math.sqrt(dx * dx + dy * dy); };