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

Unified Diff: ui/webui/resources/js/cr/ui/autocomplete_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
« no previous file with comments | « ui/webui/resources/js/cr/ui/array_data_model.js ('k') | ui/webui/resources/js/cr/ui/bubble.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/autocomplete_list.js
diff --git a/ui/webui/resources/js/cr/ui/autocomplete_list.js b/ui/webui/resources/js/cr/ui/autocomplete_list.js
index 0c140cb611deeb216c1fe097f67f49b9b1f8b3b2..ccd9400608d01a011256d2847f02184f33f7d1a9 100644
--- a/ui/webui/resources/js/cr/ui/autocomplete_list.js
+++ b/ui/webui/resources/js/cr/ui/autocomplete_list.js
@@ -133,7 +133,9 @@ cr.define('cr.ui', function() {
* By default, clears and hides the autocomplete popup. Note that the
* keydown event bubbles up, so the input field can handle the event.
*/
- handleEnterKeydown: function() { this.suggestions = []; },
+ handleEnterKeydown: function() {
+ this.suggestions = [];
+ },
/**
* Handles the selected suggestion. Called when a suggestion is selected.
@@ -222,7 +224,9 @@ cr.define('cr.ui', function() {
* @return {HTMLElement} The text field the autocomplete popup is currently
* attached to, if any.
*/
- get targetInput() { return this.targetInput_; },
+ get targetInput() {
+ return this.targetInput_;
+ },
/**
* Handles input field key events that should be interpreted as autocomplete
« no previous file with comments | « ui/webui/resources/js/cr/ui/array_data_model.js ('k') | ui/webui/resources/js/cr/ui/bubble.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698