true.
but you CAN generate the script which reates the prototyp
using another script.
- Original Message -
From: "Michael Pemberton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 6:31 PM
Subject: Re: [Dynapi-Help] if the else bas
what inherit?
Eytan Heidingsfeld wrote:
> If you use my inherit (just like yours so I don't know why yours won't
> work?) You can inherit based on an if clause since the inherit is just a
> static function.
> 8an
>
> ___
> Dynapi-Help mailing list
> [E
If you use my inherit (just like yours so I don't know why yours won't
work?) You can inherit based on an if clause since the inherit is just a
static function.
8an
___
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listi
how about using eval(0 to build the function?
- Original Message -
From: "Jeff Greenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 5:26 PM
Subject: Re: [Dynapi-Help] if the else based inheritance
> Does the conditional functi
t;
> Sent: Tuesday, February 20, 2001 5:26 PM
> Subject: Re: [Dynapi-Help] if the else based inheritance
>
> > Does the conditional function declarations of JS 1.5 solve that? I know
> this only
> > applies to NS6, but I am curious and don't have a copy of NS6 at
the best way of doing this is as follows:
function createFunction(url) {
if (url) return new LoanPanel(url);
else return new DynLayer();
};
Jeff Greenberg wrote:
> Does the conditional function declarations of JS 1.5 solve that? I know this only
> applies to NS6, but I a
Does the conditional function declarations of JS 1.5 solve that? I know this only
applies to NS6, but I am curious and don't have a copy of NS6 at hand right now to
try... anybody else?
Jeff Greenberg
[EMAIL PROTECTED]
Michael Pemberton wrote:
> it has been discussed a few days ago. JS doesn't
it has been discussed a few days ago. JS doesn't allow alternative inheretance.
Ramon Buckland wrote:
> Hi All,
>
> I am wanting to do an 'if' based inheritance for an object
>
> Below is my Object .. if it is passed ('url=url.htm') then I want the object
> to inherit the LoadPanel
>
Hi All,
I am wanting to do an 'if' based inheritance for an object
Below is my Object .. if it is passed ('url=url.htm') then I want the object
to inherit the LoadPanel
but if it is passed content, then I want it
to inheritjust from DynLayer ..
Any ideas .. my p