Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2471)

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager.js

Issue 517843002: ChromeVox is using Array.every in three places where it should be forEach. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager.js
index a7236cddd27f0c14660574fb4def163cada58963..39e355bdd5ffb62ec7f0bb61da768608a456b33e 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager.js
@@ -647,14 +647,14 @@ cvox.NavigationManager.prototype.speakDescriptionArray = function(
opt_personality,
opt_category) {
if (opt_personality) {
- descriptionArray.every(function(desc) {
+ descriptionArray.forEach(function(desc) {
if (!desc.personality) {
desc.personality = opt_personality;
}
});
}
if (opt_category) {
- descriptionArray.every(function(desc) {
+ descriptionArray.forEach(function(desc) {
if (!desc.category) {
desc.category = opt_category;
}

Powered by Google App Engine
This is Rietveld 408576698