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

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

Issue 2651483002: MD Settings: Eliminate use of ES6 for Chrome OS (Closed)
Patch Set: . 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/bluetooth_page/bluetooth_page.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
index 35054c2c1ce4ede61e2d090f91b7aac4b6588d5f..2f5649126cc4423f2b5a0bbc82c31642f23545b5 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
@@ -228,8 +228,8 @@ Polymer({
/** @private */
deviceListChanged_: function() {
- for (let device of this.deviceList_) {
- if (device.connected) {
+ for (var d = 0; d <this.deviceList_.length; ++d) {
dpapad 2017/01/23 19:12:53 Space missing before |this.deviceList_.length|. Al
stevenjb 2017/01/24 02:02:03 done / ack. I tend to prefer more context relevent
+ if (this.deviceList_[d].connected) {
this.deviceConnected_ = true;
return;
}

Powered by Google App Engine
This is Rietveld 408576698