aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2015-03-17 13:21:02 +0000
committerStephen Blott2015-03-17 13:21:02 +0000
commit71d33fdeaa5c081de5041a6a0909d452e1564633 (patch)
tree66112da870552cfd138307f5d8ef620ede58a372 /pages
parent4399e2e4fffc4faba9f1505dfc0ad3150a948632 (diff)
downloadvimium-71d33fdeaa5c081de5041a6a0909d452e1564633.tar.bz2
Activate vomnibar in window.top; fix race condition on close.
Diffstat (limited to 'pages')
-rw-r--r--pages/vomnibar.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee
index 06ec9ee9..dbb37ebf 100644
--- a/pages/vomnibar.coffee
+++ b/pages/vomnibar.coffee
@@ -67,10 +67,9 @@ class VomnibarUI
# 3. Only once "hidden" message is received here is any required action (callback) invoked (in onHidden).
# This ensures that the vomnibar is actually hidden, and avoids flicker after opening a link in a new tab
# (see #1485).
- hide: (callback = null) ->
+ hide: (@postHideCallback = null) ->
UIComponentServer.postMessage "hide"
@reset()
- @postHideCallback = callback
onHidden: ->
@postHideCallback?()