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