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

Unified Diff: ui/webui/resources/js/cr/ui/menu_button.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/menu.js ('k') | ui/webui/resources/js/cr/ui/menu_item.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/menu_button.js
diff --git a/ui/webui/resources/js/cr/ui/menu_button.js b/ui/webui/resources/js/cr/ui/menu_button.js
index a42aa3e28b3057fc7217acbc68f4eeb9d39b9a1b..d54de2df5086bb10ec32968599bc81ffd223e3ba 100644
--- a/ui/webui/resources/js/cr/ui/menu_button.js
+++ b/ui/webui/resources/js/cr/ui/menu_button.js
@@ -67,7 +67,9 @@ cr.define('cr.ui', function() {
* The menu associated with the menu button.
* @type {cr.ui.Menu}
*/
- get menu() { return this.menu_; },
+ get menu() {
+ return this.menu_;
+ },
set menu(menu) {
if (typeof menu == 'string' && menu[0] == '#') {
menu = assert(this.ownerDocument.getElementById(menu.slice(1)));
@@ -240,7 +242,9 @@ cr.define('cr.ui', function() {
/**
* Whether the menu is shown.
*/
- isMenuShown: function() { return this.hasAttribute('menu-shown'); },
+ isMenuShown: function() {
+ return this.hasAttribute('menu-shown');
+ },
/**
* Positions the menu below the menu button. At this point we do not use any
« no previous file with comments | « ui/webui/resources/js/cr/ui/menu.js ('k') | ui/webui/resources/js/cr/ui/menu_item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698