diff --git a/cake/libs/view/helpers/javascript.php b/cake/libs/view/helpers/javascript.php index a316ad227..02d8a507f 100644 --- a/cake/libs/view/helpers/javascript.php +++ b/cake/libs/view/helpers/javascript.php @@ -151,16 +151,18 @@ class JavascriptHelper extends AppHelper { } /** * Returns a JavaScript script tag. + * + * Options: + * + * - allowCache: boolean, designates whether this block is cacheable using the + * current cache settings. + * - safe: boolean, whether this block should be wrapped in CDATA tags. Defaults + * to helper's object configuration. + * - inline: whether the block should be printed inline, or written + * to cached for later output (i.e. $scripts_for_layout). * * @param string $script The JavaScript to be wrapped in SCRIPT tags. * @param array $options Set of options: - * - allowCache: boolean, designates whether this block is cacheable using the - * current cache settings. - * - safe: boolean, whether this block should be wrapped in CDATA tags. Defaults - * to helper's object configuration. - * - inline: whether the block should be printed inline, or written - * to cached for later output (i.e. $scripts_for_layout). - * * @return string The full SCRIPT element, with the JavaScript inside it, or null, * if 'inline' is set to false. */ @@ -241,9 +243,9 @@ class JavascriptHelper extends AppHelper { * the path will be relative to the base path of your application. Otherwise, the path will * be relative to your JavaScript path, usually webroot/js. * - * @param mixed $url String URL to JavaScript file, or an array of URLs. - * @param boolean $inline If true, the tag will be printed inline, - * otherwise it will be printed in the
, using $scripts_for_layout + * @param mixed $url String URL to JavaScript file, or an array of URLs. + * @param boolean $inline If true, the tag will be printed inline, + * otherwise it will be printed in the
, using $scripts_for_layout * @see JS_URL * @return string */