Skip to content

Commit f40063e

Browse files
authored
jQuery.extend: Separate the one-argument signature from the multiple-arguments one
This is done to reduce the confusion as the single-argument signature behaves completely differently than the other one. Ref jquery/jquery#4748 Fixes jquerygh-1164 Closes jquerygh-1170
1 parent 1e3b163 commit f40063e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

entries/jQuery.extend.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<signature>
55
<added>1.0</added>
66
<argument name="target" type="Object">
7-
<desc> An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.</desc>
7+
<desc> An object that will receive the new properties.</desc>
88
</argument>
9-
<argument name="object1" type="Object" optional="true">
9+
<argument name="object1" type="Object">
1010
<desc>An object containing additional properties to merge in.</desc>
1111
</argument>
1212
<argument name="objectN" optional="true" type="Object">
@@ -28,6 +28,12 @@
2828
<desc>Additional objects containing properties to merge in.</desc>
2929
</argument>
3030
</signature>
31+
<signature>
32+
<added>1.0</added>
33+
<argument name="object" type="Object">
34+
<desc> An object to merge onto the jQuery namespace.</desc>
35+
</argument>
36+
</signature>
3137
<desc>Merge the contents of two or more objects together into the first object.</desc>
3238
<longdesc>
3339
<p>When two or more object arguments are supplied to <code>$.extend()</code>, properties from all of the objects are added to the target object. Arguments that are <code>null</code> or <code>undefined</code> are ignored.</p>

0 commit comments

Comments
 (0)