synchronous-autocomplete
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -41,5 +41,4 @@ 'use strict'; | ||
var _id = _ids[_i]; | ||
if (!results[_id] || !results[_id] > _relevance) { | ||
results[_id] = _relevance; | ||
} | ||
if (!results[_id]) results[_id] = 0; | ||
results[_id] += _relevance; | ||
} | ||
@@ -46,0 +45,0 @@ } |
{ | ||
"name": "synchronous-autocomplete", | ||
"description": "Fast, simple autocompletion.", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -41,5 +41,4 @@ 'use strict' | ||
const id = ids[i] | ||
if (!results[id] || !results[id] > relevance) { | ||
results[id] = relevance | ||
} | ||
if (!results[id]) results[id] = 0 | ||
results[id] += relevance | ||
} | ||
@@ -46,0 +45,0 @@ } |
15105
265