Skip to content

Commit 9ddc020

Browse files
committed
Ajax: new signature for post/get was added in 1.12/2.2
1 parent 4a2f383 commit 9ddc020

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

entries/jQuery.get.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<?xml version="1.0"?>
22
<entry type="method" name="jQuery.get" return="jqXHR">
33
<title>jQuery.get()</title>
4-
<signature>
5-
<added>3.0</added>
6-
<argument name="settings" type="PlainObject" optional="false">
7-
<desc>A set of key/value pairs that configure the Ajax request. All properties except for <code>url</code> are optional. A default can be set for any option with <a href="/jQuery.ajaxSetup/">$.ajaxSetup()</a>. See <a href="/jquery.ajax/#jQuery-ajax-settings">jQuery.ajax( settings )</a> for a complete list of all settings. The type option will automatically be set to <code>GET</code>.</desc>
8-
</argument>
9-
</signature>
104
<signature>
115
<added>1.0</added>
126
<argument name="url" type="String">
@@ -24,7 +18,13 @@
2418
<desc>A callback function that is executed if the request succeeds. Required if <code>dataType</code> is provided, but you can use <code>null</code> or <a href="/jQuery.noop/"><code>jQuery.noop</code></a> as a placeholder.</desc>
2519
</argument>
2620
<argument name="dataType" optional="true" type="String">
27-
<desc>The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).</desc>
21+
<desc>The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).</desc>
22+
</argument>
23+
</signature>
24+
<signature>
25+
<added>1.12/2.2</added>
26+
<argument name="settings" type="PlainObject" optional="false">
27+
<desc>A set of key/value pairs that configure the Ajax request. All properties except for <code>url</code> are optional. A default can be set for any option with <a href="/jQuery.ajaxSetup/">$.ajaxSetup()</a>. See <a href="/jquery.ajax/#jQuery-ajax-settings">jQuery.ajax( settings )</a> for a complete list of all settings. The type option will automatically be set to <code>GET</code>.</desc>
2828
</argument>
2929
</signature>
3030
<desc>Load data from the server using a HTTP GET request.</desc>

entries/jQuery.post.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<desc>A plain object or string that is sent to the server with the request.</desc>
1313
</argument>
1414
<argument name="success" optional="true" type="Function">
15-
<argument name="data" type="Object" />
15+
<argument name="data" type="PlainObject" />
1616
<argument name="textStatus" type="String"/>
17-
<argument name="jqXHR" type="jqXHR"/>
17+
<argument name="jqXHR" type="jqXHR"/>
1818
<desc>A callback function that is executed if the request succeeds. Required if <code>dataType</code> is provided, but can be <code>null</code> in that case.</desc>
1919
</argument>
2020
<argument name="dataType" optional="true" type="String">
2121
<desc>The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).</desc>
2222
</argument>
2323
</signature>
2424
<signature>
25-
<added>3.0</added>
25+
<added>1.12/2.2</added>
2626
<argument name="settings" type="PlainObject" optional="false">
2727
<desc>A set of key/value pairs that configure the Ajax request. All properties except for <code>url</code> are optional. A default can be set for any option with <a href="/jQuery.ajaxSetup/">$.ajaxSetup()</a>. See <a href="/jquery.ajax/#jQuery-ajax-settings">jQuery.ajax( settings )</a> for a complete list of all settings. Type will automatically be set to <code>POST</code>.</desc>
2828
</argument>

0 commit comments

Comments
 (0)