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

Unified Diff: ui/webui/resources/js/cr/ui/overlay.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_item.js ('k') | ui/webui/resources/js/cr/ui/page_manager/page.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/overlay.js
diff --git a/ui/webui/resources/js/cr/ui/overlay.js b/ui/webui/resources/js/cr/ui/overlay.js
index 2ea09c348a546b27e5b45fd9df300edb683d78a9..2e068c4950da2bf32327427ae7bb7b69c5f076bf 100644
--- a/ui/webui/resources/js/cr/ui/overlay.js
+++ b/ui/webui/resources/js/cr/ui/overlay.js
@@ -26,7 +26,9 @@ cr.define('cr.ui.overlay', function() {
* @return {HTMLElement} The default button.
*/
function getDefaultButton(overlay) {
- function isHidden(node) { return node.hidden; }
+ function isHidden(node) {
+ return node.hidden;
+ }
var defaultButtons = /** @type !NodeList<!HTMLElement> */ (
overlay.querySelectorAll('.page .button-strip > .default-button'));
for (var i = 0; i < defaultButtons.length; i++) {
@@ -111,8 +113,9 @@ cr.define('cr.ui.overlay', function() {
else
this.removeAttribute('hidden');
});
- overlay.__defineGetter__(
- 'hidden', function() { return this.hasAttribute('hidden'); });
+ overlay.__defineGetter__('hidden', function() {
+ return this.hasAttribute('hidden');
+ });
// Shake when the user clicks away.
overlay.addEventListener('click', function(e) {
« no previous file with comments | « ui/webui/resources/js/cr/ui/menu_item.js ('k') | ui/webui/resources/js/cr/ui/page_manager/page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698