mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Switches from Array#filter to jQuery.grep for IE<=8 support
This commit is contained in:
parent
78652a707f
commit
1f04481092
4
js/bootstrap-typeahead.js
vendored
4
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
|
||||
})
|
||||
|
||||
@ -249,4 +249,4 @@
|
||||
})
|
||||
})
|
||||
|
||||
}( window.jQuery )
|
||||
}( window.jQuery )
|
||||
|
Loading…
Reference in New Issue
Block a user