Re: [gabriel.reid@gmail.com: Re: [Jsdoc-user] fix for objects that are extended with this.base membe
Status: Inactive
Brought to you by:
mmathews
|
From: Justin E. <ear...@gm...> - 2005-09-02 00:54:38
|
Hi Gabriel,
Here is the example of a where you can use this:
function MyBaseClass(pName)
{
this.name <http://this.name> =3D pName;
this.prop1 =3D "test";
}
function MyExtendedBaseClass(pName)
{
//set Base class
this.base =3D MyBaseClass;
this.base(pName);
}
Examples are here:
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:The_Employee=
_Example:More_Flexible_Constructors
Justin=20
On 9/1/05, Gabriel Reid <gab...@gm...> wrote:=20
>=20
> Hi,
>=20
> I'm forwarding this to you as I didn't see your address on the JSDoc
> subscriber list.
>=20
>=20
> ----- Forwarded message from Gabriel Reid <gab...@gm...> -----
> On Wed, Aug 31, 2005 at 06:55:22PM -0700, Justin Early wrote:
> > I have a fix for JSdocs that will create the hierarchy if you use the=
=20
> base
> > object.
> > added this to the fetch_funcs_and_classes function
> > elsif ($cname2 && $propname1=3D~ /base/ && defined($propval1)) {
> > #base property correction
> > &set_base_class($cname2, $propval1);
> > }
> > Attached is the updated pm. This was based off of the
> > 1.9.5.6 <http://1.9.5.6><http://1.9.5.6>version. This is a pretty big=
=20
> improvement
> > because developers do not need to
> > add @extends to every js file object. If they change the code then the=
=20
> docs
> > change automatically.
>=20
>=20
> Could you please post an example of how the base object is used in
> JavaScript? I'm not familiar with it.
>=20
> Regards,
>=20
> Gabriel
>=20
> ----- End forwarded message -----
>=20
--=20
It's a cool add-in for Outlook that automatically organizes your email. I=
=20
think it's great!
________________________________
Click http://www.caelo.com/a/rl.php3?i=3DU30ZD to check it out.
|