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" ); };
  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to