diff options
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 | 
