You are here

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

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::min()
  2. 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::min()
  3. 6 advagg_js_compress/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_minify/jsminplus.inc, line 277
JSMinPlus version 1.4

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;
}