You are here

private function JSMinPlus::min in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jsminplus.inc \JSMinPlus::min()
  2. 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::min()
  3. 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::min()
  4. 7.2 advagg_js_compress/jsminplus.inc \JSMinPlus::min()
  5. 7 advagg_js_compress/jsminplus.inc \JSMinPlus::min()

File

advagg_js_compress/jsminplus.inc, line 261

Class

JSMinPlus

Code

private function min($js, $filename) {
  try {
    $n = $this->parser
      ->parse($js, $filename, 1);
    return $this
      ->parseTree($n);
  } catch (Exception $e) {
    echo $e
      ->getMessage() . "\n";
  }
  return false;
}