{
String s = new String(input, "UTF-8");
return JavascriptStripper.stripCommentsAndWhitespace(s).getBytes("UTF-8");
}
IJavascriptCompressor compressor = Application.get()
.getResourceSettings()
.getJavascriptCompressor();
if (compressor != null)
{
String s = new String(input, "UTF-8");
return compressor.compress(s).getBytes("UTF-8");
}
// don't strip the comments, just return original input
return input;
}