application/modules/g/views/helpers/Script.php
protected function _renderSrc($url, array $attrs = array()) {
        if ('http://' !== substr($url, 0, 7)
            && 'https://' !== substr($url, 0, 8)
            && '//' !== substr($url, 0, 2)
        ) {
            $url = $this->view->assetUrl($url);
        }
        $attrs['src'] = $url;
        $attrs = $this->_htmlAttribs($attrs);
        return "<script{$attrs}></script>";
    }
protected function _renderSrc($url, array $attrs = array()) {
        if ('http://' !== substr($url, 0, 7)
            && 'https://' !== substr($url, 0, 8)
            && '//' !== substr($url, 0, 2)
        ) {
            $url = $this->view->assetUrl($url);
        }
        $attrs['src'] = $url;
        $attrs = $this->_htmlAttribs($attrs);
        return "<script{$attrs}></script>";
    }
protected function _renderSrc ( $ url , array $ attrs = array ( ) ) { if ( 'http://' !== substr ( $ url , 0 , 7 ) && 'https://' !== substr ( $ url , 0 , 8 ) && '//' !== substr ( $ url , 0 , 2 ) ) { $ url = $ this -> view -> assetUrl ( $ url ) ; } $ attrs [ 'src' ] = $ url ; $ attrs = $ this -> _htmlAttribs ( $ attrs ) ; return "<script{$attrs}></script>" ; }
Render Javascript tags with a "src" attribute.

@param String $url If not given, everything in $this->_urls will be rendered.
@param Array $attrs HTML attributes for the <script> tag
@return String
Render Javascript tags with a src attribute .