On 2/10/06, John Osborn <[EMAIL PROTECTED]> wrote:
> Todd: The skeleton code I am using to create the base class is in my first
> email.

Sorry.  I was expecting to see MyControls.Base.

http://www.brainsick.com/prototype/classinheritance.html

There were a couple changes.  Like Ryan said, you need to
Object.extend() twice.  I broke them into two separate commands
instead of trying to stack them.

There were some syntax errors in your examples ... a missing ); after
the Object.extends.

You don't need to Class.create() your 'Base' (MyControls.TextBox). 
Class.create() just returns an object that calls (object).initialize()
automatically, which you don't need to do for your base.

You also had a saveCallback vs saveCallBack problem.

Does this help?

Todd
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to