Skip to content

Commit 90321ab

Browse files
AurelioDeRosamgol
authored andcommitted
outerHeight: Specified type of passed arguments to callback
Fixes jquerygh-989 Closes jquerygh-1009
1 parent 95dcca4 commit 90321ab

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

entries/outerHeight.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ $( "p:last" ).text(
5656
</signature>
5757
<signature>
5858
<added>1.8.0</added>
59-
<argument name="function(index, height)" type="Function">
59+
<argument name="function" type="Function">
60+
<argument name="index" type="Integer" />
61+
<argument name="height" type="Number" />
62+
<return>
63+
<type name="String"/>
64+
<type name="Number"/>
65+
</return>
6066
<desc>A function returning the outer height to set. Receives the index position of the element in the set and the old outer height as arguments. Within the function, <code>this</code> refers to the current element in the set.</desc>
6167
</argument>
6268
</signature>

entries/outerWidth.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ $( "p:last" ).text(
5656
</signature>
5757
<signature>
5858
<added>1.8.0</added>
59-
<argument name="function(index, width)" type="Function">
59+
<argument name="function" type="Function">
60+
<argument name="index" type="Integer" />
61+
<argument name="width" type="Number" />
62+
<return>
63+
<type name="String"/>
64+
<type name="Number"/>
65+
</return>
6066
<desc>A function returning the outer width to set. Receives the index position of the element in the set and the old outer width as arguments. Within the function, <code>this</code> refers to the current element in the set.</desc>
6167
</argument>
6268
</signature>

0 commit comments

Comments
 (0)