Ok then, the other thing then is your
MyControls.TextBox doesn’t seem to have an “initialize” method. That might have
something to do with it. Try this, change “baseInitialize to initialize. Then
you will have instantiate your base class in your subclass’s initialize method to
inherit, like so… MyControls.TextBox = Class.create(); MyControls.TextBox.prototype = { initialize: function(loadCallback,
saveCallback, saveOptions) { Blah blah blah… } }; MyControls.EditableTextBox =
Class.create(); MyControls.EditableTextBox.prototype = { initialize:
function(targetObj, loadCallback, saveCallBack, options) { Object.extend(this,
new MyControls.TextBox(loadCallback, saveCallBack) ); … …blah blah blah… } }; If that doesn’t work I seriously don’t
know what’s going on then. If you try that and still have problems, then we’ll
need more code from your project or a test page somewhere, as Todd Ross said,
in order to help you further. From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Osborn Ryan: No I am defining
that with a var -- besides I would get a differant error that blah.blah is not
a contructor On 2/10/06, Ryan
Gahl <[EMAIL PROTECTED]>
wrote: If my suggestion did not work then my next thought is that
you are not actually defining "MyControls" first. You can't define MyControls.TextBox is MyControls is not
defined. From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of John Osborn Ryan, Thanks again for any help. On
2/10/06, Ryan Gahl <[EMAIL PROTECTED]
> wrote: You're missing a level of extension in the 2nd
object. It should be… Object.extend(Object.extend(MyControls.EditableTextbox.prototype,
MyControls.TextBox.prototype), {
…stuff here… }); From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of John Osborn Hello
Everyone, The information transmitted in this electronic mail is intended
only for the person or entity to which it is addressed and may contain
confidential, proprietary, and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact the sender
and delete the material from all computers.
The information transmitted in this electronic mail is intended
only for the person or entity to which it is addressed and may contain
confidential, proprietary, and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact the
sender and delete the material from all computers.
The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. |
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs