On Sep 11, 11:45 am, Joran <jorangr...@gmail.com> wrote: > The suggestion is not to extend String.prototype with another method, > but to rename the current String.evalJSON extension to String.toObject.
I understand :) The problem is that both - `String.prototype` and `String` are built- in objects and no matter which one you extend, it's still like playing with fire (of course, we already are playing with fire by using `String.evalJSON`, rather than keeping it under a separate "namespace"). -- kangax --~--~---------~--~----~------------~-------~--~----~ 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 prototype-core-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---