Message from discussion
Why is there a $super-Parameter?
Received: by 10.220.55.134 with SMTP id u6mr267176vcg.7.1300448637113;
Fri, 18 Mar 2011 04:43:57 -0700 (PDT)
X-BeenThere: prototype-scriptaculous@googlegroups.com
Received: by 10.220.124.5 with SMTP id s5ls1413343vcr.4.p; Fri, 18 Mar 2011
04:43:51 -0700 (PDT)
Received: by 10.220.210.72 with SMTP id gj8mr75580vcb.29.1300448631531;
Fri, 18 Mar 2011 04:43:51 -0700 (PDT)
Date: Fri, 18 Mar 2011 04:43:50 -0700 (PDT)
From: Luke <kickingje...@gmail.com>
Reply-To: prototype-scriptaculous@googlegroups.com
To: prototype-scriptaculous@googlegroups.com
Message-ID: <18509762.27.1300448630780.JavaMail.geo-discussion-forums@vbnr13>
Subject: Why is there a $super-Parameter?
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_25_16290524.1300448630764"
------=_Part_25_16290524.1300448630764
Content-Type: multipart/alternative;
boundary="----=_Part_26_24232084.1300448630765"
------=_Part_26_24232084.1300448630765
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Hi,
I'm working on my bachelor-thesis and I'm trying to understand a few things.
I'm wondering: Why is there the construct of the $super-parameter in
Prototype's class-implementation? Is anything wrong with calling
this.parent.myfunction()? Why did they implement that?
This is more of a theoretical question.. I just think there must be a reason
for the $super thing..
Does anyone have an idea?
Thanks
Lukas
------=_Part_26_24232084.1300448630765
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<div>Hi,</div><div><br></div><div>I'm working on my bachelor-thesis and I'm trying to understand a few things. I'm wondering: Why is there the construct of the $super-parameter in Prototype's class-implementation? Is anything wrong with calling this.parent.myfunction()? Why did they implement that?</div><div><br></div><div>This is more of a theoretical question.. I just think there must be a reason for the $super thing..</div><div><br></div><div>Does anyone have an idea?</div><div><br></div><div>Thanks</div><div>Lukas</div>
------=_Part_26_24232084.1300448630765--
------=_Part_25_16290524.1300448630764--