From c44f0217fbfc4df1ac6bffea4a07abe3930e634e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 11 Nov 2012 22:15:10 +0000 Subject: Changes in responce to philc's recommendations. See: https://github.com/philc/vimium/pull/715 --- background_scripts/completion.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 08c33430..13e700d8 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -169,7 +169,11 @@ class HistoryCompleter # The domain completer is designed to match a single-word query which looks like it is a domain. This supports # the user experience where they quickly type a partial domain, hit tab -> enter, and expect to arrive there. class DomainCompleter - domains: null # A map of domain -> { entry: , referenceCount: } + # A map of domain -> { entry: , referenceCount: } + # - `entry` is the most recently accessed page in the History within this domain. + # - `referenceCount` is a count of the number of History entries within this domain. + # If `referenceCount` goes to zero, the domain entry can and should be deleted. + domains: null filter: (queryTerms, onComplete) -> return onComplete([]) if queryTerms.length > 1 -- cgit v1.2.3