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

Unified Diff: ui/webui/resources/js/cr/ui/table/table_column_model.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
Index: ui/webui/resources/js/cr/ui/table/table_column_model.js
diff --git a/ui/webui/resources/js/cr/ui/table/table_column_model.js b/ui/webui/resources/js/cr/ui/table/table_column_model.js
index 1f6322bd6cea9b65a70bbe3e4be494f670bda613..d2067c88ab45e17c520b9016dfa0c9e6a9e18049 100644
--- a/ui/webui/resources/js/cr/ui/table/table_column_model.js
+++ b/ui/webui/resources/js/cr/ui/table/table_column_model.js
@@ -32,14 +32,18 @@ cr.define('cr.ui.table', function() {
* The number of the columns.
* @type {number}
*/
- get size() { return this.columns_.length; },
+ get size() {
+ return this.columns_.length;
+ },
/**
* Returns id of column at the given index.
* @param {number} index The index of the column.
* @return {string} Column id.
*/
- getId: function(index) { return this.columns_[index].id; },
+ getId: function(index) {
+ return this.columns_[index].id;
+ },
/**
* Returns name of column at the given index. Name is used as column header
@@ -47,7 +51,9 @@ cr.define('cr.ui.table', function() {
* @param {number} index The index of the column.
* @return {string} Column name.
*/
- getName: function(index) { return this.columns_[index].name; },
+ getName: function(index) {
+ return this.columns_[index].name;
+ },
/**
* Sets name of column at the given index.
@@ -69,14 +75,18 @@ cr.define('cr.ui.table', function() {
* @param {number} index The index of the column.
* @return {string} Column width in pixels.
*/
- getWidth: function(index) { return this.columns_[index].width; },
+ getWidth: function(index) {
+ return this.columns_[index].width;
+ },
/**
* Check if the column at the given index should align to the end.
* @param {number} index The index of the column.
* @return {boolean} True if the column is aligned to end.
*/
- isEndAlign: function(index) { return this.columns_[index].endAlign; },
+ isEndAlign: function(index) {
+ return this.columns_[index].endAlign;
+ },
/**
* Sets width of column at the given index.
@@ -203,7 +213,9 @@ cr.define('cr.ui.table', function() {
* @param {number} index The column index.
* @return {boolean} Whether the column is visible.
*/
- isVisible: function(index) { return this.columns_[index].visible; }
+ isVisible: function(index) {
+ return this.columns_[index].visible;
+ }
};
return {TableColumnModel: TableColumnModel};
« no previous file with comments | « ui/webui/resources/js/cr/ui/table/table_column.js ('k') | ui/webui/resources/js/cr/ui/table/table_header.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698