Same name in other branches
  1. 5.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::pack()
  2. 6.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::pack()
  3. 7.x-1.x advagg_js_compress/jspacker.inc \JavaScriptPacker::pack()
  4. 7.x-2.x advagg_js_compress/jspacker.inc \JavaScriptPacker::pack()
  5. 8.x-3.x advagg_js_minify/jspacker.inc \JavaScriptPacker::pack()
  6. 8.x-4.x advagg_js_minify/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);
}