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

Unified Diff: ui/webui/resources/js/cr/ui/command.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/card_slider.js ('k') | ui/webui/resources/js/cr/ui/context_menu_handler.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/command.js
diff --git a/ui/webui/resources/js/cr/ui/command.js b/ui/webui/resources/js/cr/ui/command.js
index 3f857aff09a39264540c339a1f1273ffe84eda73..783bba571da75e69c0b02d29eee20e4b4ba64ede 100644
--- a/ui/webui/resources/js/cr/ui/command.js
+++ b/ui/webui/resources/js/cr/ui/command.js
@@ -129,7 +129,9 @@ cr.define('cr.ui', function() {
* @type {string}
*/
shortcut_: '',
- get shortcut() { return this.shortcut_; },
+ get shortcut() {
+ return this.shortcut_;
+ },
set shortcut(shortcut) {
var oldShortcut = this.shortcut_;
if (shortcut !== oldShortcut) {
@@ -310,7 +312,9 @@ cr.define('cr.ui', function() {
* @type {boolean}
*/
canExecute_: false,
- get canExecute() { return this.canExecute_; },
+ get canExecute() {
+ return this.canExecute_;
+ },
set canExecute(canExecute) {
this.canExecute_ = !!canExecute;
this.stopPropagation();
« no previous file with comments | « ui/webui/resources/js/cr/ui/card_slider.js ('k') | ui/webui/resources/js/cr/ui/context_menu_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698