Skip to content

Commit

Permalink
chore: remove unnecessary false argument (#29478)
Browse files Browse the repository at this point in the history
* chore: remove unnecessary `false` argument  

`createTreeWalker` does not have 4th argument.

* Update files/en-us/web/api/treewalker/currentnode/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: wbamberg <will@bootbonnet.ca>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 4, 2023
1 parent 22457a0 commit 732ac4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion files/en-us/web/api/treewalker/currentnode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const treeWalker = document.createTreeWalker(
return NodeFilter.FILTER_ACCEPT;
},
},
false,
);
root = treeWalker.currentNode; // the root element as it is the first element!
```
Expand Down

0 comments on commit 732ac4c

Please sign in to comment.