Compressing 'public' identifiers

britney69

New Member
Before compiler:\[code\]function Foo(){ this.init = function(){ var bar = new Bar(); bar.init(); };}function Bar(){ this.init = function(){ console.log('Hello'); };}$(window).load(function(){ var foo; foo = new Foo(); foo.init();});\[/code\]After running closure compiler and formatting:\[code\]function Foo(){ this.init=function(){ (new Bar).init() } }function Bar(){ this.init=function(){ console.log("Hello") } }$(window).load(function(){ (new Foo).init() });\[/code\]How can I get the compiler to compress the 'init' identifier, so we have e.g. 'a' instead of 'init' ?
 
Top