News for hackers. Stuff that matters.
Re:Silly Javascript by palsecam on Saturday July 25, 2009 @03:41PM (#723578)
No way to avoid it, I think. Javascript calls Object.toString() to determinate the key. But yes, kind of silly...

See http://news.ycombinator.com/item?id=602004

Actually there may be a way to avoid it: redefine the toString() method of the String prototype or something like that (just an idea in the wild, haven't tried it)...

There are no comments on this comment yet.