widgets and externally callable functions not getting called.

widgets and externally callable functions not getting called.


Hi there,
whilst looking at ui.tabs I noticed that one can externall call
several functions such as add, remove, enable, disable, etc. as seen
at http://docs.jquery.com/UI/Tabs
Now, I'm writing a widget named bTags yet I'm having some troubles
with it. The widget itself works fine (viz. all internal calls do what
they need to do), and is inited in the regular jQuery manner:
$('#tags').bTags({
    msgNoTags    : 'Add tags via the input below and press enter or comma'
});
When then later calling the 'addTags' method of it, I either see it
not getting called at all; or the init() function is called upon
again ... and this in full contrast to the aforementioned ui.tabs.
$('#tags').bTags('addTag', 'foo'); // This doesn't work?!
(check the console ... should output 'addTag')
Demopage is set up over at http://www.bram.us/sandbox/jquery/btags/test.html
... anyone can take a peek and notices what exactly is going wrong?
Regards,
Bramus!