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

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

parent 78652a70
6 merge requests!14752.0 wip,!1403warningText and warningBackground docs fix,!13512.0 wip - relative font sizes,!1315[2.0-wip] Fix mustache glob when building,!1269[2.0-wip] Fix typehead plugin for IE7/8,!1268[wip-2.0] IE 7/8 Typehead JS fix
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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 )
Supports Markdown
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