Skip to content

Commit c91fed3

Browse files
committed
chore: equality + doc cleanups
1 parent 404c20e commit c91fed3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/focus_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class FocusManager {
224224
*/
225225
focusNode(focusableNode: IFocusableNode): void {
226226
this.ensureManagerIsUnlocked();
227-
if (this.focusedNode == focusableNode) return; // State is unchanged.
227+
if (this.focusedNode === focusableNode) return; // State is unchanged.
228228

229229
const nextTree = focusableNode.getFocusableTree();
230230
if (!this.isRegistered(nextTree)) {

core/interfaces/i_focusable_node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface IFocusableNode {
3232
*
3333
* It's expected the actual returned element will not change for the lifetime
3434
* of the node (that is, its properties can change but a new element should
35-
* never be returned.)
35+
* never be returned).
3636
*/
3737
getFocusableElement(): HTMLElement | SVGElement;
3838

core/interfaces/i_focusable_tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface IFocusableTree {
3939

4040
/**
4141
* Returns the IFocusableNode of this tree that should receive active focus
42-
* when the tree itself has focused returned to it.
42+
* when the tree itself has focus returned to it.
4343
*
4444
* There are some very important notes to consider about a tree's focus
4545
* lifecycle when implementing a version of this method that doesn't return

0 commit comments

Comments
 (0)