Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPete Hopkins <phopkins@twitter.com>2012-01-27 02:07:06 +0400
committerPete Hopkins <phopkins@twitter.com>2012-01-27 02:07:06 +0400
commit1f04481092f6021c721f48465b57f7a829f186f5 (patch)
tree6bd442512491b3ca3626d87e1c10c30012618378 /js
parent78652a707f8ae2d98b1cd434b4bca546d2948236 (diff)
Switches from Array#filter to jQuery.grep for IE<=8 support
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-typeahead.js4
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 )