protected function minifyJs()
    {
        $minifier = new Minify\JS();

        // Components
        $this->addJsToMinifier($minifier, 'dropdowns', 'dropdown');

        // Components w/ JavaScript
        $this->addJsToMinifier($minifier, 'modals', 'modal');
        $this->addJsToMinifier($minifier, 'tooltip');
        $this->addJsToMinifier($minifier, 'popovers', 'popover');
        $this->addJsToMinifier($minifier, 'carousel');

        // Pure JavaScript components
        $this->addJsToMinifier($minifier, 'affix');
        $this->addJsToMinifier($minifier, 'alert');
        $this->addJsToMinifier($minifier, 'button');
        $this->addJsToMinifier($minifier, 'collapse');
        $this->addJsToMinifier($minifier, 'scrollspy');
        $this->addJsToMinifier($minifier, 'tab');
        $this->addJsToMinifier($minifier, 'transition');

        return $minifier->minify();
    }
protected function minifyJs()
    {
        $minifier = new Minify\JS();

        // Components
        $this->addJsToMinifier($minifier, 'dropdowns', 'dropdown');

        // Components w/ JavaScript
        $this->addJsToMinifier($minifier, 'modals', 'modal');
        $this->addJsToMinifier($minifier, 'tooltip');
        $this->addJsToMinifier($minifier, 'popovers', 'popover');
        $this->addJsToMinifier($minifier, 'carousel');

        // Pure JavaScript components
        $this->addJsToMinifier($minifier, 'affix');
        $this->addJsToMinifier($minifier, 'alert');
        $this->addJsToMinifier($minifier, 'button');
        $this->addJsToMinifier($minifier, 'collapse');
        $this->addJsToMinifier($minifier, 'scrollspy');
        $this->addJsToMinifier($minifier, 'tab');
        $this->addJsToMinifier($minifier, 'transition');

        return $minifier->minify();
    }
protected function minifyJs ( ) { $ minifier = new Minify \ JS ( ) ; // Components $ this -> addJsToMinifier ( $ minifier , 'dropdowns' , 'dropdown' ) ; // Components w/ JavaScript $ this -> addJsToMinifier ( $ minifier , 'modals' , 'modal' ) ; $ this -> addJsToMinifier ( $ minifier , 'tooltip' ) ; $ this -> addJsToMinifier ( $ minifier , 'popovers' , 'popover' ) ; $ this -> addJsToMinifier ( $ minifier , 'carousel' ) ; // Pure JavaScript components $ this -> addJsToMinifier ( $ minifier , 'affix' ) ; $ this -> addJsToMinifier ( $ minifier , 'alert' ) ; $ this -> addJsToMinifier ( $ minifier , 'button' ) ; $ this -> addJsToMinifier ( $ minifier , 'collapse' ) ; $ this -> addJsToMinifier ( $ minifier , 'scrollspy' ) ; $ this -> addJsToMinifier ( $ minifier , 'tab' ) ; $ this -> addJsToMinifier ( $ minifier , 'transition' ) ; return $ minifier -> minify ( ) ; }
Minify JS components to single string

@return string
Minify JS components to single string