Skip to content

Commit 4f1bd2b

Browse files
AurelioDeRosaarthurvr
authored andcommitted
jQuery.param: add jQuery collection as possible type
Fixes jquerygh-598 Closes jquerygh-631
1 parent 7852b04 commit 4f1bd2b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

entries/jQuery.param.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@
66
<argument name="obj">
77
<type name="Array"/>
88
<type name="PlainObject"/>
9-
<desc>An array or object to serialize.</desc>
9+
<type name="jQuery"/>
10+
<desc>An array, a plain object, or a jQuery object to serialize.</desc>
1011
</argument>
1112
</signature>
1213
<signature>
1314
<added>1.4</added>
1415
<argument name="obj">
1516
<type name="Array"/>
1617
<type name="PlainObject"/>
17-
<desc>An array or object to serialize.</desc>
18+
<type name="jQuery"/>
19+
<desc>An array, a plain object, or a jQuery object to serialize.</desc>
1820
</argument>
1921
<argument name="traditional" type="Boolean">
2022
<desc>A Boolean indicating whether to perform a traditional "shallow" serialization.</desc>
2123
</argument>
2224
</signature>
23-
<desc>Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. </desc>
25+
<desc>Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain <code>&lt;input&gt;</code> elements with name/value properties.</desc>
2426
<longdesc>
2527
<p>This function is used internally to convert form element values into a serialized string representation (See <a href="/serialize/">.serialize()</a> for more information).</p>
2628
<p>As of jQuery 1.3, the return value of a function is used instead of the function as a String.</p>

0 commit comments

Comments
 (0)