I am trying to write autocomplete control using jquery ui for dialog model(using Mustache to render the model dialog) for brackets plugin.
like this.
function bindSelect() {
var tags = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"];
$("#mySelectDropDown").autocomplete({
source: function (request, response) {
var matcher = new RegExp("^" + $.ui.autocomplete.escapeRegex(request.term), "i");
response($.grep(tags, function (item) {
return matcher.test(item);
}));
}
});
}
but i am getting the error $.ui is undefined. Seems adobe brackets dialog unable to find $.ui api. Because the same code is working fine in other place apart from dialog window.
Thanks in advance