Skip to content

Commit 58be0dd

Browse files
johnnyreillykswedberg
authored andcommitted
.text(): Include Number and Boolean types for argument. Closes jquery#460
1 parent bcb87bf commit 58be0dd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

entries/text.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ $( "p:last" ).html( str );
5252
<entry type="method" name="text" return="jQuery">
5353
<signature>
5454
<added>1.0</added>
55-
<argument name="textString" type="String">
56-
<desc>A string of text to set as the content of each matched element.</desc>
55+
<argument name="text">
56+
<type name="String"/>
57+
<type name="Number"/>
58+
<type name="Boolean"/>
59+
<desc>The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.</desc>
5760
</argument>
5861
</signature>
5962
<signature>

0 commit comments

Comments
 (0)