From 8e349a9d06cb0ea8fdc0643b9424186df5a84b54 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 27 May 2015 16:37:28 +0100 Subject: Fix significant typo. Fix incorrect property name from 764d70312f292882abe4940adf9fee3d6e834327. --- background_scripts/completion.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index ff27e518..b46ecc43 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -30,7 +30,7 @@ class Suggestion # @insertText is text to insert into the vomnibar input when the suggestion is selected. @insertText = null # @deDuplicate controls whether this suggestion is a candidate for deduplication. - @deDuplication = true + @deDuplicate = true # Other options set by individual completers include: # - tabId (TabCompleter) @@ -665,9 +665,12 @@ class MultiCompleter # Simplify URLs and remove duplicates (duplicate simplified URLs, that is). count = 0 seenUrls = {} + console.log "" suggestions = for suggestion in suggestions url = suggestion.shortenUrl() + console.log url + console.log suggestion.deDuplicate and seenUrls[url] continue if suggestion.deDuplicate and seenUrls[url] break if count++ == @maxResults seenUrls[url] = suggestion -- cgit v1.2.3