[Rails-spinoffs] Re: Class instantiation problems

2008-05-20 Thread Chris S
Thanks, Justin! That works without errors, although other parts of the Class are still written in mootols and are causing problems, but thats for a different post. On May 20, 1:01 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote: > Try this: > > var ItemScroller = Class.create({ > initialize: fun

[Rails-spinoffs] Re: Class instantiation problems

2008-05-20 Thread Justin Perkins
Try this: var ItemScroller = Class.create({ initialize: function(el,options) { // quit if no main element passed in if (!$(el)) return; this.options = Object.extend({ containerSelector: 'ul', itemSelector: 'li', viewPortSelector: '.wrap', scrollerSelector: '.item_scroller'