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

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

Issue 575313004: Compiling file_manager, part 2: remove all warnings not caused by Object.freeze()-like enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_file_manager
Patch Set: rebase Created 6 years, 3 months 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.js ('k') | ui/webui/resources/js/cr/ui/table/table_column_model.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_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 d8533a04e7186569f4c84ea7cdd53b00b2f3a612..ac14f30f41b0d73921b00177f8500b7ed6228d42 100644
--- a/ui/webui/resources/js/cr/ui/table/table_column.js
+++ b/ui/webui/resources/js/cr/ui/table/table_column.js
@@ -11,28 +11,23 @@ cr.define('cr.ui.table', function() {
/**
* A table column that wraps column ids and settings.
- * @param {!Array} columnIds Array of column ids.
+ * @param {string} id
+ * @param {string} name
+ * @param {number} width
+ * @param {boolean=} opt_endAlign
* @constructor
- * @extends {EventTarget}
+ * @extends {cr.EventTarget}
*/
- function TableColumn(id, name, width, endAlign) {
+ function TableColumn(id, name, width, opt_endAlign) {
this.id_ = id;
this.name_ = name;
this.width_ = width;
- this.endAlign_ = endAlign;
+ this.endAlign_ = !!opt_endAlign;
}
TableColumn.prototype = {
__proto__: EventTarget.prototype,
- id_: null,
-
- name_: null,
-
- width_: null,
-
- endAlign_: false,
-
defaultOrder_: 'asc',
/**
« no previous file with comments | « ui/webui/resources/js/cr/ui/table.js ('k') | ui/webui/resources/js/cr/ui/table/table_column_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698