KKK (<--- gosh that feels weird ;) )

Please be aware that by doing so, every for... in loop in your code
will also iterate over the hashCode function.

For example:

var obj = { foo: 'foo' };

for (var prop in obj) console.log(prop)
>>> hashCode
>>> foo

So that's wy it's forbidden.

Regards,

Tobie

On Nov 12, 6:36 pm, KKK <[EMAIL PROTECTED]> wrote:
> Thank you. I saw the thread. I asked a same question.
>
> I want to add a function:hashCode to all Javascript Object.if
> prototype can't fix the question ,i had modify the prototype.js by
> myself.
>
> On 11月13日, 上午1时07分, Wiktor Ihárosi <[EMAIL PROTECTED]> wrote:
>
> > > I think Ajax.request must fix this bug. Don't use "in" to iterate a
> > > array.
>
> > please, check this 
> > thread:http://groups.google.com/group/prototype-core/browse_thread/thread/5b...
>
> > "So let me say it in plain English: Object.prototype is forbidden and
> > should be treated as sealed / constant / 
> > final."http://erik.eae.net/archives/2005/06/06/22.13.54


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to