aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorJez Ng2012-09-08 16:37:05 -0400
committerJez Ng2012-09-08 16:37:05 -0400
commitadf8b7cc617279e50594477560ec7031e2ab68ea (patch)
treef43660994fb29770bd38e4b11cc11d828ecc0615 /background_scripts/completion.coffee
parent3e5bba24ede4f9392ff666634a0a8f05e21a02d1 (diff)
parente740ea52b646f1b7cd0ef13e15571b20adaa3bd8 (diff)
downloadvimium-adf8b7cc617279e50594477560ec7031e2ab68ea.tar.bz2
Merge branch 'next-release'
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 5920db0b..5539f7c7 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -26,7 +26,7 @@ class Suggestion
generateHtml: ->
return @html if @html
- relevancyHtml = if @showRelevancy then "<span class='relevancy'>#{@computeRelevancy() + ''}</span>" else ""
+ relevancyHtml = if @showRelevancy then "<span class='relevancy'>#{@computeRelevancy()}</span>" else ""
# NOTE(philc): We're using these vimium-specific class names so we don't collide with the page's CSS.
@html =
"<div class='vimiumReset vomnibarTopHalf'>
@@ -90,7 +90,7 @@ class BookmarkCompleter
performSearch: ->
results = @bookmarks.filter (bookmark) =>
- RankingUtils.matches(@currentSearch.queryTerms, bookmark.url, bookmark.title)
+ RankingUtils.matches(@currentSearch.queryTerms, bookmark.url, bookmark.title)
suggestions = results.map (bookmark) =>
new Suggestion(@currentSearch.queryTerms, "bookmark", bookmark.url, bookmark.title, @computeRelevancy)
onComplete = @currentSearch.onComplete