original_string: protected function getScriptJs(array $tag_frag, $test_for_js = true)
      {
          if (empty($tag_frag['script_js'])) {
              return ''; // Not possible; no JavaScript code.
          }
          if ($test_for_js && !$this->isScriptTagFragJs($tag_frag)) {
              return ''; // This script tag does not contain JavaScript.
          }
          return trim($tag_frag['script_js']); // JavaScript code.
      }
code: protected function getScriptJs(array $tag_frag, $test_for_js = true)
      {
          if (empty($tag_frag['script_js'])) {
              return ''; // Not possible; no JavaScript code.
          }
          if ($test_for_js && !$this->isScriptTagFragJs($tag_frag)) {
              return ''; // This script tag does not contain JavaScript.
          }
          return trim($tag_frag['script_js']); // JavaScript code.
      }
code_tokens: protected function getScriptJs ( array $ tag_frag , $ test_for_js = true ) { if ( empty ( $ tag_frag [ 'script_js' ] ) ) { return '' ; // Not possible; no JavaScript code. } if ( $ test_for_js && ! $ this -> isScriptTagFragJs ( $ tag_frag ) ) { return '' ; // This script tag does not contain JavaScript. } return trim ( $ tag_frag [ 'script_js' ] ) ; // JavaScript code. }
docstring: Get script JS from a JS tag fragment.
  
  @since 140417 Initial release.
  
  @param array $tag_frag    A JS tag fragment.
  @param bool  $test_for_js Defaults to a TRUE value.
  If TRUE, we will test tag fragment to make sure it's JavaScript.
  
  @return string The script JS code (if possible); else an empty string.
docstring_tokens: Get script JS from a JS tag fragment .