From 1f04481092f6021c721f48465b57f7a829f186f5 Mon Sep 17 00:00:00 2001 From: Pete Hopkins Date: Thu, 26 Jan 2012 17:07:06 -0500 Subject: [PATCH] Switches from Array#filter to jQuery.grep for IE<=8 support --- js/bootstrap-typeahead.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js index f64fcca01e..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 }) @@ -249,4 +249,4 @@ }) }) -}( window.jQuery ) \ No newline at end of file +}( window.jQuery )