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

Unified Diff: ui/webui/resources/js/action_link.js

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js 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
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 a9e1ffd6620991b44b5a6aa4a790bd93da9c62eb..4cfcc956f7b50540c49ac15e850cdf17d9bcec27 100644
--- a/ui/webui/resources/js/action_link.js
+++ b/ui/webui/resources/js/action_link.js
@@ -54,9 +54,7 @@ var ActionLink = document.registerElement('action-link', {
}
});
- function preventDefault(e) {
- e.preventDefault();
- }
+ function preventDefault(e) { e.preventDefault(); }
function removePreventDefault() {
document.removeEventListener('selectstart', preventDefault);
@@ -75,9 +73,8 @@ 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} */
@@ -88,9 +85,7 @@ 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) {

Powered by Google App Engine
This is Rietveld 408576698