Skip to content

Commit 536292c

Browse files
andylikswedberg
authored andcommitted
innerWidth(): Specify the signature of the function argument.
1 parent b217356 commit 536292c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

entries/innerWidth.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@ $( "p:last" ).text( "innerWidth:" + p.innerWidth() );
5050
</signature>
5151
<signature>
5252
<added>1.8.0</added>
53-
<argument name="function(index, width)" type="Function">
54-
<desc>A function returning the inner width (including padding but not border) to set. Receives the index position of the element in the set and the old inner width as arguments. Within the function, <code>this</code> refers to the current element in the set.</desc>
53+
<argument name="function" type="Function">
54+
<argument name="index" type="Integer" />
55+
<argument name="width" type="Number" />
56+
<return>
57+
<type name="String"/>
58+
<type name="Number"/>
59+
</return>
60+
<desc>A function returning the inner width (including padding but not border) to set. Receives the index position of the element in the set and the old inner width as arguments. Within the function, <code>this</code> refers to the current element in the set.</desc>
5561
</argument>
5662
</signature>
5763
<desc>Set the CSS inner width of each element in the set of matched elements.</desc>

0 commit comments

Comments
 (0)