Skip to content

Commit 227d300

Browse files
author
Victor Homyakov
committed
PDoc for evalJSON was missing
1 parent c5e7547 commit 227d300

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/prototype/ajax.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
* * `requestHeaders` ([[Object]]): A set of key-value pairs, with properties
6464
* representing header names.
6565
* * `evalJS` ([[Boolean]] | [[String]]; default `true`): Automatically `eval`s
66+
* the content of [[Ajax.Response#responseText]] if the `Content-type` returned
67+
* by the server is set to one of `text/javascript`, `application/ecmascript`
68+
* (matches expression `(text|application)\/(x-)?(java|ecma)script`).
69+
* If the request doesn't obey same-origin policy, the content is not evaluated.
70+
* If you need to force evalutation, pass `'force'`. To prevent it altogether,
71+
* pass `false`.
72+
* * `evalJSON` ([[Boolean]] | [[String]]; default `true`): Automatically `eval`s
6673
* the content of [[Ajax.Response#responseText]] and populates
6774
* [[Ajax.Response#responseJSON]] with it if the `Content-type` returned by
6875
* the server is set to `application/json`. If the request doesn't obey

0 commit comments

Comments
 (0)