From 5492249ba4f36e40c8dcb4eff9916fa29bf0f94a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 9 Nov 2014 06:20:48 +0000 Subject: Tabs order; minor style changes. --- background_scripts/completion.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'background_scripts') 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 -- cgit v1.2.3