I'm trying to make Bloodhound work.
The code I have:
var licenses = new Bloodhound({
datumTokenizer: function(d) {
return Bloodhound.tokenizers.whitespace(d.value);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: [{ "value": 1 , "text": "A"}, { "value": 2 , "text": "C+E"}]
});
licenses.initialize();
throws an error
Object 1 has no method 'split'
What's wrong in this code?