Skip to content

Commit c881b2b

Browse files
jugglinmikekswedberg
authored andcommitted
before(), after(): Document new callback signature since jQuery version 1.10
Closes gh-580
1 parent 357f4d1 commit c881b2b

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

entries/after.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,25 @@
2323
<argument name="function" type="Function">
2424
<desc>A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of 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>
2525
<argument name="index" type="Integer" />
26-
<argument name="html" type="String" />
2726
<return>
2827
<type name="htmlString"/>
2928
<type name="Element"/>
3029
<type name="jQuery"/>
3130
</return>
3231
</argument>
32+
</signature>
33+
<signature>
34+
<added>1.10</added>
35+
<argument name="function" type="Function">
36+
<desc>A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, <code>this</code> refers to the current element in the set.</desc>
37+
<argument name="index" type="Integer" />
38+
<argument name="html" type="String" />
39+
<return>
40+
<type name="htmlString"/>
41+
<type name="Element"/>
42+
<type name="jQuery"/>
43+
</return>
44+
</argument>
3345
</signature>
3446
<desc>Insert content, specified by the parameter, after each element in the set of matched elements.</desc>
3547
<longdesc>

entries/before.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<added>1.4</added>
2323
<argument name="function" type="Function">
2424
<argument name="index" type="Integer" />
25-
<argument name="html" type="String" />
2625
<return>
2726
<type name="htmlString"/>
2827
<type name="Element"/>
@@ -31,6 +30,20 @@
3130
<desc>A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of 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.
3231
</desc>
3332
</argument>
33+
</signature>
34+
<signature>
35+
<added>1.10</added>
36+
<argument name="function" type="Function">
37+
<argument name="index" type="Integer" />
38+
<argument name="html" type="String" />
39+
<return>
40+
<type name="htmlString"/>
41+
<type name="Element"/>
42+
<type name="jQuery"/>
43+
</return>
44+
<desc>A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, <code>this</code> refers to the current element in the set.
45+
</desc>
46+
</argument>
3447
</signature>
3548
<desc>Insert content, specified by the parameter, before each element in the set of matched elements.</desc>
3649
<longdesc>

0 commit comments

Comments
 (0)