--- # This file is licensed under the MIT License (MIT) available on # http://opensource.org/licenses/MIT. --- "use strict"; var search_data = {{ site.devsearches_json }}; {% raw %} // code adapted from http://jqueryui.com/autocomplete/#categories // MIT license: https://jquery.org/license/ $.widget("custom.catcomplete", $.ui.autocomplete, { _create: function() { this._super(); this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); }, _renderMenu: function(ul, items) { var that = this, currentCategory = ""; $.each(items, function(index, item) { var li; if (item.category !== currentCategory) { ul.append("