fix(trie): node.value

This commit is contained in:
Mahdi Dibaiee 2016-11-02 18:33:51 +03:30
parent a903456f2b
commit 2afa7f61d3

View File

@ -176,7 +176,7 @@ input.addEventListener('keyup', () => {
for (let node of nodes) { // << Change for (let node of nodes) { // << Change
const category = node.category ? `- ${node.category}` : ''; const category = node.category ? `- ${node.category}` : '';
results.innerHTML += `<li>${node.name} ${category}</li>`; results.innerHTML += `<li>${node.value} ${category}</li>`;
} }
}); });
{% endhighlight %} {% endhighlight %}
@ -195,7 +195,7 @@ input.addEventListener('keydown', e => {
if (!current.children.length) return; if (!current.children.length) return;
input.value = current.children[0].name; input.value = current.children[0].value;
} }
}); });
{% endhighlight %} {% endhighlight %}