:)
ok, then it does work, my apologies :)
:)
On 9/27/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote:
>
> On 9/27/07, Yanick <[EMAIL PROTECTED]> wrote:
> >
> >
> > var childObj1 = Class.create(baseObj, {
> > initialize: function() {
> > this.bar = function() { alert( "bleh" ); };
> > }
> > });
> >
> > In this implementation, the method childObj1.foo(); is not a
> > function... as it is a "private" member in the base class.
>
>
> You didn't call the parent constructor. That's why foo is missing. You
> need:
>
> initialize: function($super) {
> $super()
> this.bar = function() { alert( "bleh" ); };
> }
>
>
> >
>
--
Ryan Gahl
Manager, Senior Software Engineer
Nth Penguin, LLC
http://www.nthpenguin.com
--
Architect
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-262-951-6727
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---