The double underscore should alert you that it is private. It was a property
used for the internals of MooTools. Right after that snippet, you see that
.parent was set. this.parent() is the official way of calling a super class'
method. For all of the 1.2.x branch.



On Wed, Mar 23, 2011 at 12:30 PM, vinhboy <[email protected]> wrote:

> Well, I dont think so because in 1.2.1 there is this
>
> Class.extend({
>
>        inherit: function(object, properties){
>                var caller = arguments.callee.caller;
>                for (var key in properties){
>                        var override = properties[key];
>                        var previous = object[key];
>                        var type = $type(override);
>                        if (previous && type == 'function'){
>                                if (override != previous){
>                                        if (caller){
>                                                override.__parent =
> previous;
>                                                object[key] = override;
>                                        } else {
>                                                Class.override(object, key,
> override);
>                                        }
>                                }
>                        } else if(type == 'object'){
>                                object[key] = $merge(previous, override);
>                        } else {
>                                object[key] = override;
>                        }
>                }
>
> So mootools is doing it. I think.
>
> On Mar 23, 11:23 am, Ryan Florence <[email protected]> wrote:
> > I'm pretty sure __parent is a prototype.js thing.
> >
> > In MooTools it's just `this.parent()`  (in all 1.2.x)
> >
> > On Mar 23, 2011, at 12:07 PM, vinhboy wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hey everyone.
> >
> > > I am trying to upgrade from 1.2.1 to 1.2.5 (for compatibility with
> > > IE9). One of the issue I am running into is that there is no longer a
> > > "__parent" (double underscore) method/var that I can use to access the
> > > superclass method.
> >
> > > The only piece of documentation I can find on it is here:
> >
> > >http://www.effectgames.com/effect/article.psp.html/docs/Object_Orient.
> ..
> >
> > > But I don't totally understand it, so if anyone has some links or an
> > > explanation they can share with me I would really appreciate it.
> >
> > > Thanks
>

Reply via email to