- this.element.autocomplete($.extend(opts, this.options))
- .data("autocomplete")._renderItem = __bind(this, this.render_item);
+ this.element.autocomplete($.extend(opts, this.options));
+ if (this.element.autocomplete('instance') !== undefined) this.element.autocomplete('instance')._renderItem = __bind(this, this.render_item_2022);
+ if (this.element.data('autocomplete') !== undefined) this.element.data('autocomplete')._renderItem = __bind(this, this.render_item);;