]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Switches from Array#filter to jQuery.grep for IE<=8 support 1268/head 1269/head
authorPete Hopkins <phopkins@twitter.com>
Thu, 26 Jan 2012 22:07:06 +0000 (17:07 -0500)
committerPete Hopkins <phopkins@twitter.com>
Thu, 26 Jan 2012 22:07:06 +0000 (17:07 -0500)
js/bootstrap-typeahead.js

index f64fcca01e41e0beaf50f132dfc382d773332aa5..1205a99caf1f1cbe08da2db6d809065e90872718 100644 (file)
@@ -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
       })
 
     })
   })
 
-}( window.jQuery )
\ No newline at end of file
+}( window.jQuery )