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

Unified Diff: ui/webui/resources/js/cr/ui/list_item.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/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 cb6aacfc123504baf5c9ac2c6817326ba69ccdda..d86191a9c17dec4a5e630e2dc03157368728350d 100644
--- a/ui/webui/resources/js/cr/ui/list_item.js
+++ b/ui/webui/resources/js/cr/ui/list_item.js
@@ -25,12 +25,8 @@ 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.
@@ -50,18 +46,16 @@ cr.define('cr.ui', function() {
/**
* Called when the selection state of this element changes.
*/
- selectionChanged: function() {
- },
+ selectionChanged: function() {},
};
/**
* Whether the item is selected. Setting this does not update the underlying
* selection model. This is only used for display purpose.
*/
- cr.defineProperty(ListItem, 'selected', cr.PropertyKind.BOOL_ATTR,
- function() {
- this.selectionChanged();
- });
+ cr.defineProperty(
+ ListItem, 'selected', cr.PropertyKind.BOOL_ATTR,
+ function() { this.selectionChanged(); });
/**
* Whether the item is the lead in a selection. Setting this does not update
@@ -75,7 +69,5 @@ cr.define('cr.ui', function() {
*/
cr.defineProperty(ListItem, 'listIndex');
- return {
- ListItem: ListItem
- };
+ return {ListItem: ListItem};
});

Powered by Google App Engine
This is Rietveld 408576698