diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-12-21 11:55:02 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-12-21 11:55:02 +0100 |
commit | 7ec11ecfc447c66582e16d4e832cbfc089139e29 (patch) | |
tree | 90475f185803ab8bbc789102880c906932e520eb /public/javascripts/search.js | |
parent | 0f50fb9ddc50b35faa8b927b9dbf81d006ba0094 (diff) |
fixed ie
Diffstat (limited to 'public/javascripts/search.js')
-rw-r--r-- | public/javascripts/search.js | 6 |
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 } |