On 4/6/15, 12:25 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote:
>Have you tried it without the quotes around the property name in >Object.defineProperties? I did, and no luck there either. And in the final result, there will be some properties that are accessed by name and thus can’t be renamed (well, at least not without more compiler work). > >Also, if you're looking to prevent renaming by the GCC, you may want to >look into the use of 'externs' files: > >https://developers.google.com/closure/compiler/docs/api-tutorial3#externs I’ll keep that in mind. The same document does recommend: "Note: Only use externs to declare symbols in external code. Never use them to protect symbols defined in the compiled code." Thanks for the tips, -Alex