You are here

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

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

File

advagg_js_compress/jspacker.inc, line 96

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