X
xdevel1999
Hi,
when I do something like:
Object.prototype.info = function(){};
var o = {propr:1};
for(var i in o)
...
here i contains also info inherited from its prototype
Now If I wanted to enumerate only the object property how can I do
that?
P.S.
It seems we cannot set DontEnum bacause it is a property reserved by
the language itself
Any idea?
May be in real life we should not extends the language itself... but
so we don't use the prototype power!!!
when I do something like:
Object.prototype.info = function(){};
var o = {propr:1};
for(var i in o)
...
here i contains also info inherited from its prototype
Now If I wanted to enumerate only the object property how can I do
that?
P.S.
It seems we cannot set DontEnum bacause it is a property reserved by
the language itself
Any idea?
May be in real life we should not extends the language itself... but
so we don't use the prototype power!!!