diff options
| author | Stephen Blott | 2014-11-09 06:20:48 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-11-09 06:20:48 +0000 | 
| commit | 5492249ba4f36e40c8dcb4eff9916fa29bf0f94a (patch) | |
| tree | d0af434c9b6826475ec729296797b88812e76706 /background_scripts | |
| parent | 1e9687d667febe575db1c66aeaaca7e8954bc31f (diff) | |
| download | vimium-5492249ba4f36e40c8dcb4eff9916fa29bf0f94a.tar.bz2 | |
Tabs order; minor style changes.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index af1613fc..3fea9ee9 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -259,7 +259,7 @@ class DomainCompleter    # Suggestions from the Domain completer have the maximum relevancy. They should be shown first in the list.    computeRelevancy: -> 1 -# TabRecency associates a timestamp with each tab id. +# TabRecency associates a logical timestamp with each tab id.  class TabRecency    constructor: ->      @timestamp = 1 @@ -297,10 +297,10 @@ class TabCompleter        onComplete(suggestions)    computeRelevancy: (suggestion) -> -    if 0 < suggestion.queryTerms.length +    if suggestion.queryTerms.length        RankingUtils.wordRelevancy(suggestion.queryTerms, suggestion.url, suggestion.title)      else -      tabRecency.recencyScore suggestion.tabId +      tabRecency.recencyScore(suggestion.tabId)  # A completer which will return your search engines  class SearchEngineCompleter | 
