$.widget("wl.search", {
options: {
minLength: 0,
+ dataType: "json",
},
_create: function() {
select: __bind(this, this.enter),
focus: function() { return false; },
source: this.element.data('source'),
+ dataType: options.dataType,
};
this.element.autocomplete($.extend(opts, this.options))