Commit 1f044810 authored by Pete Hopkins's avatar Pete Hopkins

Switches from Array#filter to jQuery.grep for IE<=8 support

parent 78652a70
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
q = this.query.toLowerCase() q = this.query.toLowerCase()
items = this.data.filter(function (item) { items = jQuery.grep(this.data, function (item) {
if (that.matcher(item, q)) return item if (that.matcher(item, q)) return item
}) })
...@@ -249,4 +249,4 @@ ...@@ -249,4 +249,4 @@
}) })
}) })
}( window.jQuery ) }( window.jQuery )
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment