diff options
author | Pete Hopkins <phopkins@twitter.com> | 2012-01-27 02:07:06 +0400 |
---|---|---|
committer | Pete Hopkins <phopkins@twitter.com> | 2012-01-27 02:07:06 +0400 |
commit | 1f04481092f6021c721f48465b57f7a829f186f5 (patch) | |
tree | 6bd442512491b3ca3626d87e1c10c30012618378 /js | |
parent | 78652a707f8ae2d98b1cd434b4bca546d2948236 (diff) |
Switches from Array#filter to jQuery.grep for IE<=8 support
Diffstat (limited to 'js')
-rw-r--r-- | js/bootstrap-typeahead.js | 4 |
1 files 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 ) |