I'd like to add a method foo() to all objects:
Object.prototyp e.foo=function( ) {
// whatever
}
The caveat, though, is that I do not want foo to be enumerable by a
for-in loop. Can I do that? If not, is there a way to derive a
subclass of Object for which foo is not enumerable?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Object.prototyp e.foo=function( ) {
// whatever
}
The caveat, though, is that I do not want foo to be enumerable by a
for-in loop. Can I do that? If not, is there a way to derive a
subclass of Object for which foo is not enumerable?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Comment