aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Sand2014-08-12 10:54:06 +0300
committerTimo Sand2014-08-12 10:54:06 +0300
commitbb59c4bfecac588a87dfff01e830cbf8a7e7779f (patch)
tree035d05884e4a24a4494ba153f462f2edcbf6c4f5
parent0803fee554f1edcece6da4a082c1d8cb9bd1cdcf (diff)
downloadvimium-bb59c4bfecac588a87dfff01e830cbf8a7e7779f.tar.bz2
Fix for 1005
fixes #1005
-rw-r--r--content_scripts/vomnibar.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index fdf6c88b..6997d387 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -202,8 +202,8 @@ class BackgroundCompleter
filter: (query, callback) ->
id = Utils.createUniqueId()
- @filterPort.onMessage.addListener (msg) ->
- return if (msg.id != id)
+ @filterPort.onMessage.addListener (msg) =>
+ @filterPort.onMessage.removeListener(arguments.callee)
# The result objects coming from the background page will be of the form:
# { html: "", type: "", url: "" }
# type will be one of [tab, bookmark, history, domain].