mirror of
https://github.com/twbs/bootstrap.git
synced 2025-07-31 19:00:23 +02:00
Switches from Array#filter to jQuery.grep for IE<=8 support
This commit is contained in:
2
js/bootstrap-typeahead.js
vendored
2
js/bootstrap-typeahead.js
vendored
@@ -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
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user