diff options
| author | Phil Crosby | 2014-04-18 09:49:57 -0700 |
|---|---|---|
| committer | Phil Crosby | 2014-04-18 09:49:57 -0700 |
| commit | 366c0a56a4eed38fa8425fd227cd389181fbed92 (patch) | |
| tree | 730dae7cb5109297c8db03c834f0fb352d28674b /background_scripts | |
| parent | 42309a74a4f61c6855f92780485e47bc11973d8b (diff) | |
| download | vimium-366c0a56a4eed38fa8425fd227cd389181fbed92.tar.bz2 | |
Minor cleanups
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
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 <span>. 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 |
