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

Unified Diff: chrome/browser/resources/settings/route.js

Issue 2649663002: WebUI: Undo some usages of ES6 features that break uglify. (Closed)
Patch Set: Fix i->j Created 3 years, 11 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/settings/route.js
diff --git a/chrome/browser/resources/settings/route.js b/chrome/browser/resources/settings/route.js
index 90ad40d729725aa963d052954aed012337b945e1..388a6b9a794904c25e46d17c1cb4e575be182189 100644
--- a/chrome/browser/resources/settings/route.js
+++ b/chrome/browser/resources/settings/route.js
@@ -312,8 +312,9 @@ cr.define('settings', function() {
currentRoute_ = route;
currentQueryParameters_ = queryParameters;
lastRouteChangeWasPopstate_ = isPopstate;
- for (var observer of routeObservers_)
+ routeObservers_.forEach(function(observer) {
observer.currentRouteChanged(currentRoute_, oldRoute);
+ });
};
/** @return {!settings.Route} */
« no previous file with comments | « chrome/browser/resources/settings/prefs/prefs.js ('k') | chrome/browser/resources/settings/search_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698