public function fetchJS()
    {
        $string = "<script>baseURL = '" . $this->router->baseURL() . "/'</script>\r\n";

        if (empty($this->queuedJS)) {
            return $string;
        }

        foreach ($this->queuedJS as $script) {
            $string .= '<script src="' . $script . '"></script>' . "\r\n";
        }

        return $string;
    }
public function fetchJS()
    {
        $string = "<script>baseURL = '" . $this->router->baseURL() . "/'</script>\r\n";

        if (empty($this->queuedJS)) {
            return $string;
        }

        foreach ($this->queuedJS as $script) {
            $string .= '<script src="' . $script . '"></script>' . "\r\n";
        }

        return $string;
    }
public function fetchJS ( ) { $ string = "<script>baseURL = '" . $ this -> router -> baseURL ( ) . "/'</script>\r\n" ; if ( empty ( $ this -> queuedJS ) ) { return $ string ; } foreach ( $ this -> queuedJS as $ script ) { $ string .= '<script src="' . $ script . '"></script>' . "\r\n" ; } return $ string ; }
Helper method for grabbing aggregated JS files

@access protected
@return string JS includes
Helper method for grabbing aggregated JS files