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

Unified Diff: ui/webui/resources/js/cr/ui/focus_grid.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/expandable_bubble.js ('k') | ui/webui/resources/js/cr/ui/focus_manager.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/focus_grid.js
diff --git a/ui/webui/resources/js/cr/ui/focus_grid.js b/ui/webui/resources/js/cr/ui/focus_grid.js
index e2dc5ad116e8d8e4b959ca25dba993470c321ab1..40c782e037b3139b6df3dfd7da4b62093373bb37 100644
--- a/ui/webui/resources/js/cr/ui/focus_grid.js
+++ b/ui/webui/resources/js/cr/ui/focus_grid.js
@@ -43,7 +43,9 @@ cr.define('cr.ui', function() {
else
this.lastFocused_ = e.currentTarget;
- this.rows.forEach(function(r) { r.makeActive(r == row); });
+ this.rows.forEach(function(r) {
+ r.makeActive(r == row);
+ });
},
/** @override */
@@ -77,7 +79,9 @@ cr.define('cr.ui', function() {
* Unregisters event handlers and removes all |this.rows|.
*/
destroy: function() {
- this.rows.forEach(function(row) { row.destroy(); });
+ this.rows.forEach(function(row) {
+ row.destroy();
+ });
this.rows.length = 0;
},
@@ -109,7 +113,9 @@ cr.define('cr.ui', function() {
* Adds |row| to the end of this list.
* @param {!cr.ui.FocusRow} row The row that needs to be added to this grid.
*/
- addRow: function(row) { this.addRowBefore(row, null); },
+ addRow: function(row) {
+ this.addRowBefore(row, null);
+ },
/**
* Adds |row| before |nextRow|. If |nextRow| is not in the list or it's
« no previous file with comments | « ui/webui/resources/js/cr/ui/expandable_bubble.js ('k') | ui/webui/resources/js/cr/ui/focus_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698