Skip to content

Commit

Permalink
chore: rename serializeTree parameter (#6308)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbay committed Aug 5, 2020
1 parent 1d08e27 commit 8e29b7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/Accessibility.ts
Expand Up @@ -208,13 +208,13 @@ export class Accessibility {

private serializeTree(
node: AXNode,
whitelistedNodes?: Set<AXNode>
interestingNodes?: Set<AXNode>
): SerializedAXNode[] {
const children: SerializedAXNode[] = [];
for (const child of node.children)
children.push(...this.serializeTree(child, whitelistedNodes));
children.push(...this.serializeTree(child, interestingNodes));

if (whitelistedNodes && !whitelistedNodes.has(node)) return children;
if (interestingNodes && !interestingNodes.has(node)) return children;

const serializedNode = node.serialize();
if (children.length) serializedNode.children = children;
Expand Down

0 comments on commit 8e29b7a

Please sign in to comment.