You are here

public function JavaScriptPacker::pack in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jspacker.inc \JavaScriptPacker::pack()
  2. 8.3 advagg_js_minify/jspacker.inc \JavaScriptPacker::pack()
  3. 6 advagg_js_compress/jspacker.inc \JavaScriptPacker::pack()
  4. 7.2 advagg_js_compress/jspacker.inc \JavaScriptPacker::pack()
  5. 7 advagg_js_compress/jspacker.inc \JavaScriptPacker::pack()

File

advagg_js_minify/jspacker.inc, line 112

Class

JavaScriptPacker

Code

public function pack() {
  $this
    ->_addParser('_basicCompression');
  if ($this->_specialChars) {
    $this
      ->_addParser('_encodeSpecialChars');
  }
  if ($this->_encoding) {
    $this
      ->_addParser('_encodeKeywords');
  }

  // go!
  return $this
    ->_pack($this->_script);
}