aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion_engines.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-06 11:56:16 +0100
committerStephen Blott2015-05-06 11:56:16 +0100
commitc7fb211f0d1a6504bd0cbb94395f9437f858f2c0 (patch)
tree290a6510c65394793673ac27f89baec7aa6a59ac /background_scripts/completion_engines.coffee
parentf330e3243bc27f1a19040fb386fc877fe82fbefe (diff)
downloadvimium-c7fb211f0d1a6504bd0cbb94395f9437f858f2c0.tar.bz2
Search completion; fix yet more tweaks.
Diffstat (limited to 'background_scripts/completion_engines.coffee')
-rw-r--r--background_scripts/completion_engines.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/completion_engines.coffee b/background_scripts/completion_engines.coffee
index b5caadd7..8a880930 100644
--- a/background_scripts/completion_engines.coffee
+++ b/background_scripts/completion_engines.coffee
@@ -221,7 +221,8 @@ CompletionEngines =
queue = @inTransit[completionCacheKey] = []
engine = @lookupEngine searchUrl
fetchSuggestions engine, (suggestions) =>
- callback @completionCache.set completionCacheKey, suggestions unless engine.doNotCache
+ @completionCache.set completionCacheKey, suggestions unless engine.doNotCache
+ callback suggestions
delete @inTransit[completionCacheKey]
console.log "callbacks", queue.length, completionCacheKey if @debug and 0 < queue.length
callback suggestions for callback in queue