From: Pete Hopkins Date: Thu, 26 Jan 2012 22:07:06 +0000 (-0500) Subject: Switches from Array#filter to jQuery.grep for IE<=8 support X-Git-Tag: v2.0.0~6^2~135^2^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1268%2Fhead;p=thirdparty%2Fbootstrap.git Switches from Array#filter to jQuery.grep for IE<=8 support --- 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 )