I have a ticker which items are updated using polling. I have written a simple jQuery plugin for the ticker which is invoked like so:
$("#cont ul").ticker();
Which turns a ul into a ticker, scrolling through the li. To add new items I have to add lis to the ul, which works fine. However, the OO in me wishes I could have an addItem function on a ticker object. However, I don't want to lose the chainability that jQuery uses.
Is there some method which is more obvious than adding ul's to the list but that fit's with the jQuery way of doing things?