diff options
| author | Phil Crosby | 2014-08-12 08:11:57 -0700 |
|---|---|---|
| committer | Phil Crosby | 2014-08-12 08:11:57 -0700 |
| commit | 880a5d28ef9c3bb647b8f70e607e8e132d02a278 (patch) | |
| tree | 035d05884e4a24a4494ba153f462f2edcbf6c4f5 /content_scripts | |
| parent | 0803fee554f1edcece6da4a082c1d8cb9bd1cdcf (diff) | |
| parent | bb59c4bfecac588a87dfff01e830cbf8a7e7779f (diff) | |
| download | vimium-880a5d28ef9c3bb647b8f70e607e8e132d02a278.tar.bz2 | |
Merge pull request #1120 from deiga/fix-1005
Fix for 1005
Diffstat (limited to 'content_scripts')
| -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]. |
