diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js index fad28ea46b..1205a99caf 100644 --- a/js/bootstrap-typeahead.js +++ b/js/bootstrap-typeahead.js @@ -79,7 +79,7 @@ q = this.query.toLowerCase() - items = this.data.filter(function (item) { + items = jQuery.grep(this.data, function (item) { if (that.matcher(item, q)) return item })