Fix for remote/async suggestions
This is probably the same issue as in #1284 but have a look. There seems to be a problem when rendering the suggestions of a remote request. To reproduce, set the typeahead limit=2 and have 2 items returned from the remote source => no suggestions will be rendered. In this case the following values are set: rendered=0, limit=2, suggestions.length=2, which results in 0 sliced items. Damn nasty thing to notice, since it only occurs when limit=suggestions.length (and because slice accepts negative numbers) :)
@kricklen Could you please re-submit this PR to github:corejavascript/typeahead.js. This project pretty much has been abandoned, and we continue now on a new fork. For more information please see #1320
Looks like a duplicate of #1212, has been fixed over at corejavascript/typeahead.js#8