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

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

Issue 2607653002: MD History: clang-format Javascript files (again!) (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/history_list_behavior.js
diff --git a/chrome/browser/resources/md_history/history_list_behavior.js b/chrome/browser/resources/md_history/history_list_behavior.js
index 7373f1f7cf27e67a5633edfbfe1e9cc3435045b2..3f871c40619d8ebbbc84c893a97c8621e9ab98f0 100644
--- a/chrome/browser/resources/md_history/history_list_behavior.js
+++ b/chrome/browser/resources/md_history/history_list_behavior.js
@@ -35,7 +35,9 @@ var HistoryListBehavior = {
*/
selectedPaths: {
type: Object,
- value: /** @return {!Set<string>} */ function() { return new Set(); },
+ value: /** @return {!Set<string>} */ function() {
+ return new Set();
+ },
},
lastSelectedPath: String,
@@ -59,7 +61,9 @@ var HistoryListBehavior = {
* @return {boolean}
* @private
*/
- hasResults: function(historyDataLength) { return historyDataLength > 0; },
+ hasResults: function(historyDataLength) {
+ return historyDataLength > 0;
+ },
/**
* @param {string} searchedTerm
@@ -170,7 +174,9 @@ var HistoryListBehavior = {
var array = this.get(node.currentPath);
var splices = [];
- node.indexes.sort(function(a, b) { return b - a; });
+ node.indexes.sort(function(a, b) {
+ return b - a;
+ });
node.indexes.forEach(function(index) {
if (node.leaf || this.removeItemsBeneathNode_(node.children[index])) {
var item = array.splice(index, 1)[0];
« no previous file with comments | « chrome/browser/resources/md_history/history_list.js ('k') | chrome/browser/resources/md_history/history_toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698