aehlke/tag-it — Issue #43: unknown method 'propAttr' during autocomplete
Author: jfeldstein
Created: 2011-10-27 02:25:58+00:00
State: open

My instantiation looks like:

$('#website_tag_picker').tagit({
allowSpaces: true,
removeConfirmation: true,
tagSource: function(search, showChoices) {
var filter = search.term.toLowerCase();
$.getJSON('/ajax/getTags?term='+filter,
function(data){
var tags = data.map(function(tag){ return tag['value']; }),
choices = subtractArray(tags, $('#website_tag_picker').tagit('assignedTags'));
console.log(choices);
showChoices(choices);
}
);
}
})

Without the tagSource option, the widget loads correctly, and works fine in all ways. With it, I get the error (in Chrome):

Uncaught TypeError: Object [object Object] has no method 'propAttr'
a.widget._create.element.addClass.attr.attr.bind.bind.hjquery-ui.min.js:239
f.event.handlejquery.min.js:17
f.event.add.i.handle.k

Am i doing something dumb?