Skip to content

Commit 0a4b6fb

Browse files
AurelioDeRosaarthurvr
authored andcommitted
wrapAll: Update return type of callback function
The return value of the the callback function can be a jQuery object as well. This is the same as `wrap()`. Closes jquerygh-699
1 parent e31c339 commit 0a4b6fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

entries/wrapAll.xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
<signature>
1515
<added>1.4</added>
1616
<argument name="function" type="Function">
17-
<desc>A function that returns a structure to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, <code>this</code> refers to the current element in the set.</desc>
17+
<desc>A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, <code>this</code> refers to the current element in the set.</desc>
1818
<argument name="index" type="Integer" />
19-
<return type="String"/>
19+
<return>
20+
<type name="String"/>
21+
<type name="jQuery"/>
22+
</return>
2023
</argument>
2124
</signature>
2225
<desc>Wrap an HTML structure around all elements in the set of matched elements.</desc>

0 commit comments

Comments
 (0)