I'm trying to figure out why I get the following error which happens when I don't wrap the jquery tagit
function in a document.ready
function.
Uncaught TypeError: Object [object Object] has no method 'tagit'
This is not required for most jQuery plugins so I'd like to modify the tagit.js file such that this doesn't happen. I can't find a difference between this and other jQuery plugins that don't require document.ready
so I'm wondering if someone might take a look at it? https://github.com/aehlke/tag-it/blob/master/js/tag-it.js
(function($) {
$.widget('ui.tagit', {
...
});
})(jQuery);