Same name in other branches
- 5.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 6.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 7.x-1.x advagg_js_compress/jsminplus.inc \JSMinPlus::minify()
- 8.x-2.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 8.x-3.x advagg_js_minify/jsminplus.inc \JSMinPlus::minify()
- 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
Code
public static function minify($js, $filename = '') {
static $instance;
// this is a singleton
if (!$instance) {
$instance = new JSMinPlus();
}
return $instance->min($js, $filename);
}