Same name in other branches
  1. 5.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
  2. 6.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
  3. 7.x-1.x advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
  4. 8.x-2.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
  5. 8.x-3.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
  6. 8.x-4.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
1 call to JSMinPlus::minify()
advagg_js_compress_jsminplus dans advagg_js_compress/advagg_js_compress.advagg.inc
Compress a JS string using jsmin+.

Fichier

advagg_js_compress/jsminplus.inc, line 266

Classe

JSMinPlus

Code

public static function minify($js, $filename = '') {
    static $instance;
    // this is a singleton
    if (!$instance) {
        $instance = new JSMinPlus();
    }
    return $instance->min($js, $filename);
}