public function inlineJs($jsCode, $uniqueId = null)
    {
        if ($uniqueId !== null) {
            if ($this->included->isIncluded($uniqueId)) {
                return new DataView();
            } else {
                $this->included->markAsIncluded($uniqueId);
            }
        }
        return new TagWithText('script', $jsCode);
    }
public function inlineJs($jsCode, $uniqueId = null)
    {
        if ($uniqueId !== null) {
            if ($this->included->isIncluded($uniqueId)) {
                return new DataView();
            } else {
                $this->included->markAsIncluded($uniqueId);
            }
        }
        return new TagWithText('script', $jsCode);
    }
public function inlineJs ( $ jsCode , $ uniqueId = null ) { if ( $ uniqueId !== null ) { if ( $ this -> included -> isIncluded ( $ uniqueId ) ) { return new DataView ( ) ; } else { $ this -> included -> markAsIncluded ( $ uniqueId ) ; } } return new TagWithText ( 'script' , $ jsCode ) ; }
Returns component that renders 'script' tag with js code.

@param string $jsCode
@param string|null $uniqueId specify unique id for inline code to avoid embedding it twice
@return DataView|TagWithText
Returns component that renders script tag with js code .