Index: chrome/browser/resources/md_history/history_list.js |
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js |
index 11b59112e52d82afcd77d6f342b1d7140d652865..371ecb86811478d4506c9142ad4fe74669f60398 100644 |
--- a/chrome/browser/resources/md_history/history_list.js |
+++ b/chrome/browser/resources/md_history/history_list.js |
@@ -84,6 +84,10 @@ Polymer({ |
this.lastSearchedTerm_ = this.searchedTerm; |
} |
+ results.forEach(function(item, index) { |
tsergeant
2016/08/18 04:14:34
Can this be done with databinding?
index="[[index
calamity
2016/08/19 13:59:43
This is on the actual HistoryEntry backing object,
|
+ item.index = index + (this.historyData_ ? this.historyData_.length : 0); |
+ }); |
+ |
if (this.historyData_) { |
// If we have previously received data, push the new items onto the |
// existing array. |