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 8ca4f92334798c21d163dbd1d8be8f6aaf73b498..23ef15203c1e83a9d7cda9daf8358a66ad076151 100644 |
--- a/ui/webui/resources/js/cr/ui/focus_outline_manager.js |
+++ b/ui/webui/resources/js/cr/ui/focus_outline_manager.js |
@@ -31,11 +31,13 @@ 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. |
@@ -62,14 +64,20 @@ 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); |
+ } |
}; |
/** |