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

Unified Diff: ui/webui/resources/js/action_link.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/cr_elements/network/cr_network_select.js ('k') | ui/webui/resources/js/assert.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/action_link.js
diff --git a/ui/webui/resources/js/action_link.js b/ui/webui/resources/js/action_link.js
index 4cfcc956f7b50540c49ac15e850cdf17d9bcec27..a9e1ffd6620991b44b5a6aa4a790bd93da9c62eb 100644
--- a/ui/webui/resources/js/action_link.js
+++ b/ui/webui/resources/js/action_link.js
@@ -54,7 +54,9 @@ var ActionLink = document.registerElement('action-link', {
}
});
- function preventDefault(e) { e.preventDefault(); }
+ function preventDefault(e) {
+ e.preventDefault();
+ }
function removePreventDefault() {
document.removeEventListener('selectstart', preventDefault);
@@ -73,8 +75,9 @@ var ActionLink = document.registerElement('action-link', {
this.classList.add('no-outline');
});
- this.addEventListener(
- 'blur', function() { this.classList.remove('no-outline'); });
+ this.addEventListener('blur', function() {
+ this.classList.remove('no-outline');
+ });
},
/** @type {boolean} */
@@ -85,7 +88,9 @@ var ActionLink = document.registerElement('action-link', {
HTMLAnchorElement.prototype.removeAttribute.call(this, 'disabled');
this.tabIndex = disabled ? -1 : 0;
},
- get disabled() { return this.hasAttribute('disabled'); },
+ get disabled() {
+ return this.hasAttribute('disabled');
+ },
/** @override */
setAttribute: function(attr, val) {
« no previous file with comments | « ui/webui/resources/cr_elements/network/cr_network_select.js ('k') | ui/webui/resources/js/assert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698