How to workaround renaming of object properties in Closure Compiler?
问题 I have a JS library that uses has something like the following method: this.on('doAction', function (args) { console.log(args.name); console.log(args.arg1 + ' ' 9 args.arg2); }); this.trigger('doAction', {name: 'write', arg1: 1, arg2: 2}); But after advanced optimization objects properties name , arg1 and arg2 will be a , b , c , so I can't get them in doAction handler. I know I can to use quotes for a property names to prevent it from changing, but is there any better approach like special