aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/search.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-12-21 11:55:02 +0100
committerNoah Loomans <noahloomans@gmail.com>2016-12-21 11:55:02 +0100
commit7ec11ecfc447c66582e16d4e832cbfc089139e29 (patch)
tree90475f185803ab8bbc789102880c906932e520eb /public/javascripts/search.js
parent0f50fb9ddc50b35faa8b927b9dbf81d006ba0094 (diff)
fixed ie
Diffstat (limited to 'public/javascripts/search.js')
-rw-r--r--public/javascripts/search.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/javascripts/search.js b/public/javascripts/search.js
index 7d80709..8f29363 100644
--- a/public/javascripts/search.js
+++ b/public/javascripts/search.js
@@ -40,11 +40,13 @@ self._handleSubmit = function (event) {
self._calculate = function (searchTerm) {
const allResults = fuzzy.filter(searchTerm, USERS, {
- extract: item => item.value
+ extract: function (item) { return item.value }
})
const firstResults = allResults.slice(0, 7)
- const originalResults = firstResults.map(result => result.original)
+ const originalResults = firstResults.map(function (result) {
+ return result.original
+ })
return originalResults
}