Support unique items that are properties of hash.

Fixes #725.
master
Dominik Moritz 2018-02-28 19:39:01 -08:00
parent 6d62c71daa
commit 352034c9e6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
for (;i--;) {
var item = {{=$data}}[i];
if (typeof item != '{{=$itemType}}') continue;
if (itemIndices[item] !== undefined) {
if (typeof itemIndices[item] == 'number') {
{{=$valid}} = false;
j = itemIndices[item];
break;