From 9d6cbe96d3df420984b23f2fb02ea57722691962 Mon Sep 17 00:00:00 2001 From: kozbial Date: Tue, 20 Jul 2021 16:45:30 -0700 Subject: [PATCH] Migrate core/keyboard_nav/tab_navigate_cursor.js to ES6 const/let --- core/keyboard_nav/tab_navigate_cursor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/keyboard_nav/tab_navigate_cursor.js b/core/keyboard_nav/tab_navigate_cursor.js index 7d43a79f8..b339520c0 100644 --- a/core/keyboard_nav/tab_navigate_cursor.js +++ b/core/keyboard_nav/tab_navigate_cursor.js @@ -37,10 +37,10 @@ Blockly.utils.object.inherits(Blockly.TabNavigateCursor, Blockly.BasicCursor); * @override */ Blockly.TabNavigateCursor.prototype.validNode_ = function(node) { - var isValid = false; - var type = node && node.getType(); + let isValid = false; + const type = node && node.getType(); if (node) { - var location = /** @type {Blockly.Field} */ (node.getLocation()); + const location = /** @type {Blockly.Field} */ (node.getLocation()); if (type == Blockly.ASTNode.types.FIELD && location && location.isTabNavigable() && location.isClickable()) { isValid = true;