mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Migrate core/keyboard_nav/tab_navigate_cursor.js to ES6 const/let
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user