Skip to content

Commit a1ddea9

Browse files
AurelioDeRosakswedberg
authored andcommitted
wrapAll(): Add missing documentation of the possibility to pass a function (since jQuery 1.4). Closes #521
1 parent 65733cf commit a1ddea9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

entries/wrapAll.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
<desc>A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.</desc>
1212
</argument>
1313
</signature>
14+
<signature>
15+
<added>1.4</added>
16+
<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>
18+
<argument name="index" type="Integer" />
19+
<return type="String"/>
20+
</argument>
21+
</signature>
1422
<desc>Wrap an HTML structure around all elements in the set of matched elements.</desc>
1523
<longdesc>
1624
<p>The <code>.wrapAll()</code> function can take any string or object that could be passed to the <code>$()</code> function to specify a DOM structure. This structure may be nested several levels deep, but should contain only one inmost element. The structure will be wrapped around all of the elements in the set of matched elements, as a single group.</p>

0 commit comments

Comments
 (0)