| Index: ui/webui/resources/js/cr/ui/focus_outline_manager.js
|
| diff --git a/ui/webui/resources/js/cr/ui/focus_outline_manager.js b/ui/webui/resources/js/cr/ui/focus_outline_manager.js
|
| index 5a8ed8e81deb6fc97e20baa1d9a96971a78d7be3..8ca4f92334798c21d163dbd1d8be8f6aaf73b498 100644
|
| --- a/ui/webui/resources/js/cr/ui/focus_outline_manager.js
|
| +++ b/ui/webui/resources/js/cr/ui/focus_outline_manager.js
|
| @@ -31,13 +31,11 @@ cr.define('cr.ui', function() {
|
|
|
| var self = this;
|
|
|
| - doc.addEventListener('keydown', function(e) {
|
| - self.focusByKeyboard_ = true;
|
| - }, true);
|
| + doc.addEventListener(
|
| + 'keydown', function(e) { self.focusByKeyboard_ = true; }, true);
|
|
|
| - doc.addEventListener('mousedown', function(e) {
|
| - self.focusByKeyboard_ = false;
|
| - }, true);
|
| + doc.addEventListener(
|
| + 'mousedown', function(e) { self.focusByKeyboard_ = false; }, true);
|
|
|
| doc.addEventListener('focus', function(event) {
|
| // Update visibility only when focus is actually changed.
|
| @@ -64,20 +62,14 @@ cr.define('cr.ui', function() {
|
| */
|
| focusByKeyboard_: true,
|
|
|
| - updateVisibility: function() {
|
| - this.visible = this.focusByKeyboard_;
|
| - },
|
| + updateVisibility: function() { this.visible = this.focusByKeyboard_; },
|
|
|
| /**
|
| * Whether the focus outline should be visible.
|
| * @type {boolean}
|
| */
|
| - set visible(visible) {
|
| - this.classList_.toggle(CLASS_NAME, visible);
|
| - },
|
| - get visible() {
|
| - return this.classList_.contains(CLASS_NAME);
|
| - }
|
| + set visible(visible) { this.classList_.toggle(CLASS_NAME, visible); },
|
| + get visible() { return this.classList_.contains(CLASS_NAME); }
|
| };
|
|
|
| /**
|
| @@ -102,7 +94,5 @@ cr.define('cr.ui', function() {
|
| return manager;
|
| };
|
|
|
| - return {
|
| - FocusOutlineManager: FocusOutlineManager
|
| - };
|
| + return {FocusOutlineManager: FocusOutlineManager};
|
| });
|
|
|