private function setJavascript(HeadScript $element, array $js = array())
    {
        $jsPath = $this->options->getJs()->getPath();
        if (isset($js["options"])) {
            $element->appendFile($jsPath . "/" . $js["name"], "text/javascript", $js["options"]);
        } else {
            $element->appendFile($jsPath . "/" . $js["name"]);
        }
    }
private function setJavascript(HeadScript $element, array $js = array())
    {
        $jsPath = $this->options->getJs()->getPath();
        if (isset($js["options"])) {
            $element->appendFile($jsPath . "/" . $js["name"], "text/javascript", $js["options"]);
        } else {
            $element->appendFile($jsPath . "/" . $js["name"]);
        }
    }
private function setJavascript ( HeadScript $ element , array $ js = array ( ) ) { $ jsPath = $ this -> options -> getJs ( ) -> getPath ( ) ; if ( isset ( $ js [ "options" ] ) ) { $ element -> appendFile ( $ jsPath . "/" . $ js [ "name" ] , "text/javascript" , $ js [ "options" ] ) ; } else { $ element -> appendFile ( $ jsPath . "/" . $ js [ "name" ] ) ; } }
Sets a javascript asset into the HeadScript or InlineScript
@param HeadScript $element
@param array $js
Sets a javascript asset into the HeadScript or InlineScript