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

Unified Diff: ui/webui/resources/js/cr/ui/table/table_header.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well 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
« no previous file with comments | « ui/webui/resources/js/cr/ui/table/table_column_model.js ('k') | ui/webui/resources/js/cr/ui/tabs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/table/table_header.js
diff --git a/ui/webui/resources/js/cr/ui/table/table_header.js b/ui/webui/resources/js/cr/ui/table/table_header.js
index 053448bb8ab6ed1c8078162349e44e9c38365489..d82394b8e7b21ff374ba953cc4a82b24fe1f117a 100644
--- a/ui/webui/resources/js/cr/ui/table/table_header.js
+++ b/ui/webui/resources/js/cr/ui/table/table_header.js
@@ -64,7 +64,9 @@ cr.define('cr.ui.table', function() {
batchCount_: 0,
- startBatchUpdates: function() { this.batchCount_++; },
+ startBatchUpdates: function() {
+ this.batchCount_++;
+ },
endBatchUpdates: function() {
this.batchCount_--;
@@ -180,7 +182,9 @@ cr.define('cr.ui.table', function() {
* @param {number} index The index of the column to sort by.
*/
createSortFunction_: function(index) {
- return function() { this.table_.sort(index); }.bind(this);
+ return function() {
+ this.table_.sort(index);
+ }.bind(this);
},
/**
@@ -221,7 +225,9 @@ cr.define('cr.ui.table', function() {
* @param {number} index Column index.
* @param {Event} e The double click event.
*/
- handleDblClick_: function(index, e) { this.table_.fitColumn(index); },
+ handleDblClick_: function(index, e) {
+ this.table_.fitColumn(index);
+ },
/**
* Determines whether a full redraw is required.
« no previous file with comments | « ui/webui/resources/js/cr/ui/table/table_column_model.js ('k') | ui/webui/resources/js/cr/ui/tabs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698