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

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

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js 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.js
diff --git a/ui/webui/resources/js/cr/ui/table/table_column.js b/ui/webui/resources/js/cr/ui/table/table_column.js
index 66f77ec1b7488faaf3fa1d9530092d9900daf643..5977383a6814c3bc80f3ab84d7b78c1983c3654b 100644
--- a/ui/webui/resources/js/cr/ui/table/table_column.js
+++ b/ui/webui/resources/js/cr/ui/table/table_column.js
@@ -36,13 +36,13 @@ cr.define('cr.ui.table', function() {
* @return {cr.ui.table.TableColumn} Clone of the given column.
*/
clone: function() {
- var tableColumn = new TableColumn(this.id_, this.name_, this.width_,
- this.endAlign_);
+ var tableColumn =
+ new TableColumn(this.id_, this.name_, this.width_, this.endAlign_);
tableColumn.renderFunction = this.renderFunction_;
tableColumn.headerRenderFunction = this.headerRenderFunction_;
tableColumn.defaultOrder = this.defaultOrder_;
- tableColumn.visible_ = this.visible_;
+ tableColumn.visible_ = this.visible_;
return tableColumn;
},
@@ -75,18 +75,14 @@ cr.define('cr.ui.table', function() {
* The width of the column. Hidden columns have zero width.
* @type {number}
*/
- get width() {
- return this.visible_ ? this.width_ : 0;
- },
+ get width() { return this.visible_ ? this.width_ : 0; },
/**
* The width of the column, disregarding visibility. For hidden columns,
* this would be the width of the column if it were to be made visible.
* @type {number}
*/
- get absoluteWidth() {
- return this.width_;
- },
+ get absoluteWidth() { return this.width_; },
};
/**
@@ -137,7 +133,5 @@ cr.define('cr.ui.table', function() {
*/
cr.defineProperty(TableColumn, 'defaultOrder');
- return {
- TableColumn: TableColumn
- };
+ return {TableColumn: TableColumn};
});

Powered by Google App Engine
This is Rietveld 408576698