You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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#4748Fixesjquerygh-1164Closesjquerygh-1170
Copy file name to clipboardExpand all lines: entries/jQuery.extend.xml
+8-2
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
<signature>
5
5
<added>1.0</added>
6
6
<argumentname="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>
<desc>Additional objects containing properties to merge in.</desc>
29
29
</argument>
30
30
</signature>
31
+
<signature>
32
+
<added>1.0</added>
33
+
<argumentname="object"type="Object">
34
+
<desc> An object to merge onto the jQuery namespace.</desc>
35
+
</argument>
36
+
</signature>
31
37
<desc>Merge the contents of two or more objects together into the first object.</desc>
32
38
<longdesc>
33
39
<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