constructors in JS
- From: xdevel1999 <xdevel1999@xxxxxxxxx>
- Date: Tue, 17 Mar 2009 06:37:03 -0700 (PDT)
Hi,
if I Have
var f = function Foo(){}
new f().constructor.prototype.constructor === Foo is true???
here the prototype object should have Object not Foo as constructor.
and
why new f().constructor.prototype.constructor.prototype.constructor is
always the same
while
new f().__proto__.__proto__.__proto__ end correctly with null?
.
- Follow-Ups:
- Re: constructors in JS
- From: Lasse Reichstein Nielsen
- Re: constructors in JS
- From: Hubert
- Re: constructors in JS
- From: David Mark
- Re: constructors in JS
- Prev by Date: fields, tabs, visibility... Choose any two?
- Next by Date: Re: problem creating image rollovers
- Previous by thread: fields, tabs, visibility... Choose any two?
- Next by thread: Re: constructors in JS
- Index(es):
Relevant Pages
|