aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-04-16 14:43:15 +0100
committerStephen Blott2016-04-16 14:46:59 +0100
commit59d6ce006da3cb125252dfd98819daf65650781e (patch)
tree90c0c5df2e347cd7e171b7928f555e1b485e9586
parentb94caa42ec2433ec61132be30bec2fbe0bd22aa5 (diff)
downloadvimium-59d6ce006da3cb125252dfd98819daf65650781e.tar.bz2
Self code review re. ui-component focus handling.
-rw-r--r--content_scripts/hud.coffee3
-rw-r--r--content_scripts/ui_component.coffee3
2 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index 32662861..0bd1df3e 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -50,8 +50,7 @@ HUD =
clearTimeout(@_showForDurationTimerId)
@tween.stop()
if immediate
- @hudUI.hide()
- Mode.setIndicator() if updateIndicator
+ if updateIndicator then Mode.setIndicator() else @hudUI.hide()
else
@tween.fade 0, 150, => @hide true, updateIndicator
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index 675b46c7..6aa22119 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -2,8 +2,8 @@ class UIComponent
uiComponentIsReady: false
iframeElement: null
iframePort: null
- iframeFrameId: null
showing: false
+ iframeFrameId: null
options: null
shadowDOM: null
styleSheetGetter: null
@@ -119,5 +119,6 @@ class UIComponent
request.open "GET", (chrome.runtime.getURL file), true
request.send()
+
root = exports ? window
root.UIComponent = UIComponent