diff options
| author | Timo Sand | 2014-08-12 10:54:06 +0300 |
|---|---|---|
| committer | Timo Sand | 2014-08-12 10:54:06 +0300 |
| commit | bb59c4bfecac588a87dfff01e830cbf8a7e7779f (patch) | |
| tree | 035d05884e4a24a4494ba153f462f2edcbf6c4f5 | |
| parent | 0803fee554f1edcece6da4a082c1d8cb9bd1cdcf (diff) | |
| download | vimium-bb59c4bfecac588a87dfff01e830cbf8a7e7779f.tar.bz2 | |
Fix for 1005
fixes #1005
| -rw-r--r-- | content_scripts/vomnibar.coffee | 4 |
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]. |
