![]() |
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: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Sun Nov 20 2005 - 15:47:05 CET
Raphael Jolivet wrote:
First of all, there are no classes in JavaScript < 2/JScript < 7/ECMAScript
> obj1 = {
You have to add `myClass' into the object's prototype chain.
> I've tried
"Does not work" is a useless error description. [psf 4.11]
In fact, it MUST NOT work. `obj1' does not refer to a constructor
To make the prototype chain work, you need another prototype.
a)
b)
HTH
PointedEars
|