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

Unified Diff: ui/webui/resources/js/cr/ui/array_data_model.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/link_controller.js ('k') | ui/webui/resources/js/cr/ui/autocomplete_list.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/array_data_model.js
diff --git a/ui/webui/resources/js/cr/ui/array_data_model.js b/ui/webui/resources/js/cr/ui/array_data_model.js
index 5138cefeb244147d4ecce9324b4b589575969b2b..d63fbb6e23858c0cc8bbeb8c32c545a2f37c7a20 100644
--- a/ui/webui/resources/js/cr/ui/array_data_model.js
+++ b/ui/webui/resources/js/cr/ui/array_data_model.js
@@ -41,7 +41,9 @@ cr.define('cr.ui', function() {
* The length of the data model.
* @type {number}
*/
- get length() { return this.array_.length; },
+ get length() {
+ return this.array_.length;
+ },
/**
* Returns the item at the given index.
@@ -61,7 +63,9 @@ cr.define('cr.ui', function() {
* @param {string} field The field to get compare function for.
* @return {function(*, *): number} Compare function set for given field.
*/
- compareFunction: function(field) { return this.compareFunctions_[field]; },
+ compareFunction: function(field) {
+ return this.compareFunctions_[field];
+ },
/**
* Sets compare function for given field.
@@ -243,7 +247,9 @@ cr.define('cr.ui', function() {
* This runs sort after updating.
* @param {number} index The index of the item to update.
*/
- updateIndex: function(index) { this.updateIndexes([index]); },
+ updateIndex: function(index) {
+ this.updateIndexes([index]);
+ },
/**
* Notifies of update of the items in the array. This does not remove and
@@ -294,7 +300,9 @@ cr.define('cr.ui', function() {
* @param {function()} callback The function to invoke when preparation
* is complete.
*/
- prepareSort: function(field, callback) { callback(); },
+ prepareSort: function(field, callback) {
+ callback();
+ },
/**
* Sorts data model according to given field and direction and dispathes
« no previous file with comments | « ui/webui/resources/js/cr/link_controller.js ('k') | ui/webui/resources/js/cr/ui/autocomplete_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698