Skip to content

Commit b642f08

Browse files
arthurvrtimmywil
authored andcommitted
wrapAll: change description of function argument
Fixes gh-605 Closes gh-745
1 parent ad85901 commit b642f08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entries/wrapAll.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
<signature>
1515
<added>1.4</added>
1616
<argument name="function" type="Function">
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>
18-
<argument name="index" type="Integer" />
17+
<desc>A callback function returning the HTML content or jQuery object to wrap around all the matched elements. Within the function, <code>this</code> refers to the first element in the set. <strong>Prior to jQuery 3.0</strong>, the callback was incorrectly called for every element in the set and received the index position of the element in the set as an argument.</desc>
1918
<return>
2019
<type name="String"/>
2120
<type name="jQuery"/>

0 commit comments

Comments
 (0)