![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: [JSON] Changing the class of an object after its construction
From: Rob Williscroft <rtw@freenet.co.uk>
Date: Sun Nov 20 2005 - 20:24:44 CET
Raphael Jolivet wrote in news:ux%ff.1569$gC1.880@nntpserver.swip.net in
> What if I want my new object to have all these cool methods ?
<script type="text/javascript">
/** Sample data
/** Sample type with a prototype method
/** Does it work
alert( copy.upper() + "\n" + (new MyObject()).upper() );
Rob.
-- http://www.victim-prime.dsl.pipex.com/Received on Mon Nov 21 03:36:51 2005 |