Is this a typo, the 1st else if statement leads with a ~. This is found in bootstrap-typehead_prototype.js.
while (item = items.shift()) {
if (!item.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item);
else if (~item.indexOf(this.query)) caseSensitive.push(item);
else caseInsensitive.push(item);
}
Is this a typo, the 1st else if statement leads with a ~. This is found in bootstrap-typehead_prototype.js.