From c91fed3fdb775250b5c30d07c934be65e5db5fae Mon Sep 17 00:00:00 2001 From: Ben Henning Date: Mon, 21 Apr 2025 21:00:27 +0000 Subject: [PATCH] chore: equality + doc cleanups --- core/focus_manager.ts | 2 +- core/interfaces/i_focusable_node.ts | 2 +- core/interfaces/i_focusable_tree.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/focus_manager.ts b/core/focus_manager.ts index 26cc1a0c5..230bdf030 100644 --- a/core/focus_manager.ts +++ b/core/focus_manager.ts @@ -224,7 +224,7 @@ export class FocusManager { */ focusNode(focusableNode: IFocusableNode): void { this.ensureManagerIsUnlocked(); - if (this.focusedNode == focusableNode) return; // State is unchanged. + if (this.focusedNode === focusableNode) return; // State is unchanged. const nextTree = focusableNode.getFocusableTree(); if (!this.isRegistered(nextTree)) { diff --git a/core/interfaces/i_focusable_node.ts b/core/interfaces/i_focusable_node.ts index 0e81cd8dc..06d43acea 100644 --- a/core/interfaces/i_focusable_node.ts +++ b/core/interfaces/i_focusable_node.ts @@ -32,7 +32,7 @@ export interface IFocusableNode { * * It's expected the actual returned element will not change for the lifetime * of the node (that is, its properties can change but a new element should - * never be returned.) + * never be returned). */ getFocusableElement(): HTMLElement | SVGElement; diff --git a/core/interfaces/i_focusable_tree.ts b/core/interfaces/i_focusable_tree.ts index 9d1e68559..699328ef8 100644 --- a/core/interfaces/i_focusable_tree.ts +++ b/core/interfaces/i_focusable_tree.ts @@ -39,7 +39,7 @@ export interface IFocusableTree { /** * Returns the IFocusableNode of this tree that should receive active focus - * when the tree itself has focused returned to it. + * when the tree itself has focus returned to it. * * There are some very important notes to consider about a tree's focus * lifecycle when implementing a version of this method that doesn't return