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

Unified Diff: chrome/browser/resources/md_history/grouped_list.js

Issue 2597573002: MD History/Downloads: convert .bind(this) and function property values to use => (Closed)
Patch Set: Created 4 years 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/md_history/grouped_list.js
diff --git a/chrome/browser/resources/md_history/grouped_list.js b/chrome/browser/resources/md_history/grouped_list.js
index 062d6865bfc8a69ccebc73e096d5f67f360dc73d..d44a76eb0643eaaff38880d80ad56222e0c6ca98 100644
--- a/chrome/browser/resources/md_history/grouped_list.js
+++ b/chrome/browser/resources/md_history/grouped_list.js
@@ -103,20 +103,20 @@ Polymer({
var days = [];
var currentDayVisits = [this.historyData[0]];
- var pushCurrentDay = function() {
+ var pushCurrentDay = () => {
days.push({
title: this.searchedTerm ? currentDayVisits[0].dateShort :
currentDayVisits[0].dateRelativeDay,
domains: this.createHistoryDomains_(currentDayVisits),
});
- }.bind(this);
+ };
- var visitsSameDay = function(a, b) {
+ var visitsSameDay = (a, b) => {
if (this.searchedTerm)
return a.dateShort == b.dateShort;
return a.dateRelativeDay == b.dateRelativeDay;
- }.bind(this);
+ };
for (var i = 1; i < this.historyData.length; i++) {
var visit = this.historyData[i];

Powered by Google App Engine
This is Rietveld 408576698