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/cr_elements/network/cr_network_list.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/cr_elements/network/cr_network_list.js
diff --git a/ui/webui/resources/cr_elements/network/cr_network_list.js b/ui/webui/resources/cr_elements/network/cr_network_list.js
index 595ea7b6e36180eba681e6cacd2e0920712c093b..e1ded9a75368a2ddc21ea7a51f96c61d2316f75d 100644
--- a/ui/webui/resources/cr_elements/network/cr_network_list.js
+++ b/ui/webui/resources/cr_elements/network/cr_network_list.js
@@ -26,13 +26,23 @@ Polymer({
* The list of network state properties for the items to display.
* @type {!Array<!CrOnc.NetworkStateProperties>}
*/
- networks: {type: Array, value: function() { return []; }},
+ networks: {
+ type: Array,
+ value: function() {
+ return [];
+ }
+ },
/**
* The list of custom items to display after the list of networks.
* @type {!Array<!CrNetworkList.CustomItemState>}
*/
- customItems: {type: Array, value: function() { return []; }},
+ customItems: {
+ type: Array,
+ value: function() {
+ return [];
+ }
+ },
/** True if action buttons should be shown for the itmes. */
showButtons: {
@@ -68,7 +78,9 @@ Polymer({
},
/** @private */
- listChanged_: function() { this.updateScrollableContents(); },
+ listChanged_: function() {
+ this.updateScrollableContents();
+ },
/**
* Returns a combined list of networks and custom items.

Powered by Google App Engine
This is Rietveld 408576698