ChromeVox: Clean up style in tree_walker.js
This change: 1. Adds braces for all control structures according to the Google JavaScript style guidelines: http://go/js-style. 2. Access the phase member variable (this.phase_) when checking the current phase. The previous code was confusing because sometimes we would check the tree walker phase using the getter (this.phase) and other times we would directly check the member variable (this.phase_). Change-Id: Id2288716d7b1bb1a08fb8c06760a17a753be8081 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1880178 Commit-Queue: Aaron Leventhal <aleventhal@chromium.org> Reviewed-by:Aaron Leventhal <aleventhal@chromium.org> Reviewed-by:
Anastasia Helfinstein <anastasi@google.com> Cr-Commit-Position: refs/heads/master@{#714702}
Showing
Please register or sign in to comment