From 366c0a56a4eed38fa8425fd227cd389181fbed92 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Fri, 18 Apr 2014 09:49:57 -0700 Subject: Minor cleanups --- background_scripts/completion.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 8b30dc43..beb7003a 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -71,8 +71,7 @@ class Suggestion # Wraps each occurence of the query terms in the given string in a . highlightTerms: (string) -> ranges = [] - # Escape the terms before highlighting - escapedTerms = @queryTerms.map (oldTerm) -> Utils.escapeHtml(oldTerm) + escapedTerms = @queryTerms.map (term) -> Utils.escapeHtml(term) for term in escapedTerms @pushMatchingRanges string, term, ranges -- cgit v1.2.3