mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
clang-format core/keyboard_nav/basic_cursor.js
This commit is contained in:
@@ -169,12 +169,9 @@ BasicCursor.prototype.getPreviousNode_ = function(node, isValid) {
|
||||
BasicCursor.prototype.validNode_ = function(node) {
|
||||
let isValid = false;
|
||||
const type = node && node.getType();
|
||||
if (type == ASTNode.types.OUTPUT ||
|
||||
type == ASTNode.types.INPUT ||
|
||||
type == ASTNode.types.FIELD ||
|
||||
type == ASTNode.types.NEXT ||
|
||||
type == ASTNode.types.PREVIOUS ||
|
||||
type == ASTNode.types.WORKSPACE) {
|
||||
if (type == ASTNode.types.OUTPUT || type == ASTNode.types.INPUT ||
|
||||
type == ASTNode.types.FIELD || type == ASTNode.types.NEXT ||
|
||||
type == ASTNode.types.PREVIOUS || type == ASTNode.types.WORKSPACE) {
|
||||
isValid = true;
|
||||
}
|
||||
return isValid;
|
||||
@@ -217,8 +214,6 @@ BasicCursor.prototype.getRightMostChild_ = function(node) {
|
||||
return this.getRightMostChild_(newNode);
|
||||
};
|
||||
|
||||
register(
|
||||
Type.CURSOR, BasicCursor.registrationName,
|
||||
BasicCursor);
|
||||
register(Type.CURSOR, BasicCursor.registrationName, BasicCursor);
|
||||
|
||||
exports = BasicCursor;
|
||||
|
||||
Reference in New Issue
Block a user