Commit ad9e147a authored by hcarmona's avatar hcarmona Committed by Commit bot

Fix bug where |i| was reused in a nested loop.

BUG=463794

Review URL: https://codereview.chromium.org/976173003

Cr-Commit-Position: refs/heads/master@{#319206}
parent 8cd28e34
......@@ -513,9 +513,9 @@ DevicesView.prototype.displayResults_ = function() {
continue;
var grid = new cr.ui.FocusGrid();
for (var i = 0; i < rows.length; ++i) {
DevicesViewFocusRow.decorate(rows[i], devices[i]);
grid.addRow(rows[i]);
for (var j = 0; j < rows.length; ++j) {
DevicesViewFocusRow.decorate(rows[j], devices[i]);
grid.addRow(rows[j]);
}
this.focusGrids_.push(grid);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment