Probably simple question, but I can’t find solution. How to prevent jQuery-dependent SomeClassName class from renaming by Closure Compiler?
(function($) {
/**
* SomeClassName
* @constructor
*/
function SomeClassName() {
}
SomeClassName.prototype.someFunction = function() {
alert('somefunction');
};
var a = new SomeClassName();
a.someFunction();
})(jQuery);
Export the Class Name. Google Closure is changing it because it’s not public.