Location: PHPKode > projects > tgsf > tgsf-0.9.2/tgsf_core/3rd_party/min/lib/Minify/Javascript.php
<?php
/**
 * Class Minify_Javascript  
 * @package Minify
 */

require 'JSMin.php';

/**
 * Compress Javascript using Ryan Grove's JSMin class
 * 
 * @package Minify
 * @author Stephen Clay <hide@address.com>
 */
class Minify_Javascript {

    /**
     * Minify a Javascript string
     * 
     * @param string $js
     * 
     * @param array $options available options (none currently)
     * 
     * @return string 
     */
    public static function minify($js, $options = array()) 
    {
        return trim(JSMin::minify($js));    
    }
}

Return current item: tgsf