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

Unified Diff: ui/webui/resources/js/cr/ui/list_item.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/list.js ('k') | ui/webui/resources/js/cr/ui/list_selection_controller.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/list_item.js
diff --git a/ui/webui/resources/js/cr/ui/list_item.js b/ui/webui/resources/js/cr/ui/list_item.js
index d86191a9c17dec4a5e630e2dc03157368728350d..45ff813b2f4bf45c366ba033e9394581b3c263cd 100644
--- a/ui/webui/resources/js/cr/ui/list_item.js
+++ b/ui/webui/resources/js/cr/ui/list_item.js
@@ -25,8 +25,12 @@ cr.define('cr.ui', function() {
* Plain text label.
* @type {string}
*/
- get label() { return this.textContent; },
- set label(label) { this.textContent = label; },
+ get label() {
+ return this.textContent;
+ },
+ set label(label) {
+ this.textContent = label;
+ },
/**
* This item's index in the containing list.
@@ -54,8 +58,9 @@ cr.define('cr.ui', function() {
* selection model. This is only used for display purpose.
*/
cr.defineProperty(
- ListItem, 'selected', cr.PropertyKind.BOOL_ATTR,
- function() { this.selectionChanged(); });
+ ListItem, 'selected', cr.PropertyKind.BOOL_ATTR, function() {
+ this.selectionChanged();
+ });
/**
* Whether the item is the lead in a selection. Setting this does not update
« no previous file with comments | « ui/webui/resources/js/cr/ui/list.js ('k') | ui/webui/resources/js/cr/ui/list_selection_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698