Hopefully this is not a duplicate of: Why does bloodhound.get() return undefined?
I upgraded to typeahead.js version 0.10.0. Prior versions were returning the suggestions properly. Now I am getting an undefined
return with the below code:
// instantiate the bloodhound suggestion engine
var engine = new Bloodhound({
datumTokenizer: function (d) { return [d]; },
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: ["(A)labama", "Alaska", "Arizona", "Arkansas"]
});
// initialize the bloodhound suggestion engine
engine.initialize();
$('#typeahead').typeahead(null, {
source: engine.ttAdapter()
});
Here is my fiddle: http://jsfiddle.net/ucUcn/6/
Any ideas why this is happening?
A
but if you typeAr
it disappears – Bowne