aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932015-05-01 02:55:37 +0100
committermrmr19932015-05-01 02:55:37 +0100
commit702507b1edcaae39bf22ff5b35cc1f7e7723bfb0 (patch)
treebee11815fab22656b3786bc8c7ef363b37a854e2
parentf5a7f83f06d39bda32883c6c527ae76f16395063 (diff)
downloadvimium-702507b1edcaae39bf22ff5b35cc1f7e7723bfb0.tar.bz2
Rename UIComponent class to match the one used in the stylesheet
-rw-r--r--content_scripts/ui_component.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index 21431bd7..61c45136 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -61,7 +61,7 @@ class UIComponent
show: (message) ->
@postMessage message if message?
@iframeElement.classList.remove "vimiumUIComponentHidden"
- @iframeElement.classList.add "vimiumUIComponentShowing"
+ @iframeElement.classList.add "vimiumUIComponentVisible"
# The window may not have the focus. We focus it now, to prevent the "focus" listener below from firing
# immediately.
window.focus()
@@ -76,7 +76,7 @@ class UIComponent
@refocusSourceFrame @options?.sourceFrameId if focusWindow
window.removeEventListener "focus", @onFocus if @onFocus
@onFocus = null
- @iframeElement.classList.remove "vimiumUIComponentShowing"
+ @iframeElement.classList.remove "vimiumUIComponentVisible"
@iframeElement.classList.add "vimiumUIComponentHidden"
@options = null
@showing = false