Comment on Closures for class/module privacy considered harmfulComments−ghostdiver13yHint: use something like var DEV = true; (function() { var priv = function() {}; if(DEV) this.priv = priv; })(); and then use Closure Compiler with option: --define DEV=false
Comments
Hint: use something like
and then use Closure Compiler with option: --define DEV=false