On Wed, 05 Jan 2011 06:13:51 -0000, Lasse Reichstein <[email protected]> wrote:

The problems here are two: the bad conversion to number and the possibility of injecting properties into your dictionary objects using Object.prototype.

I can't see a good way to prevent that without using __proto__. Using __proto__, you can define the object literal with the extra property __proto__:null, to sever the prototype chain.

That's a great advice! Thanks. I'm going back to the drawing board :)

--
regards, porneL

--
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to