A
aundro
Hello all,
I was wondering whether I could do something like:
--snip--
MyType.prototype.myProp = {var xxx = 'this is a string'; xxx.substring(4);}
--snip--
and use the return value of the last computed expression as the one to
assign to the 'myProp' property.
Of course, I could put that code in a separate function and then call
it.. this is not a stopper, but I wondered if I could do it.
Thank you for any help/advice!
Arnaud
--
Arnaud DIEDEREN
Software Developer
IONIC Software
Rue de Wallonie, 18 - 4460 Grace-Hollogne - Belgium
Tel: +32.4.3640364 - Fax: +32.4.2534737
mailto:[email protected]
http://www.ionicsoft.com
I was wondering whether I could do something like:
--snip--
MyType.prototype.myProp = {var xxx = 'this is a string'; xxx.substring(4);}
--snip--
and use the return value of the last computed expression as the one to
assign to the 'myProp' property.
Of course, I could put that code in a separate function and then call
it.. this is not a stopper, but I wondered if I could do it.
Thank you for any help/advice!
Arnaud
--
Arnaud DIEDEREN
Software Developer
IONIC Software
Rue de Wallonie, 18 - 4460 Grace-Hollogne - Belgium
Tel: +32.4.3640364 - Fax: +32.4.2534737
mailto:[email protected]
http://www.ionicsoft.com