Skip to content

Commit edf0730

Browse files
esxscottgonzalez
authored andcommitted
prop: Change values to Anything type
Fixes jquerygh-496 Closes jquerygh-497
1 parent 11c93b9 commit edf0730

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

entries/prop.xml

+5-18
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
<entries>
33
<desc>Get the value of a property for the first element in the set of matched elements or set one or more properties for every matched element.</desc>
44
<entry type="method" name="prop">
5-
<return type="String"/>
6-
<return type="Integer"/>
7-
<return type="Boolean"/>
5+
<return type="Anything"/>
86
<title>.prop()</title>
97
<signature>
108
<added>1.6</added>
@@ -115,10 +113,7 @@ $( "input" ).change(function() {
115113
<argument name="propertyName" type="String">
116114
<desc>The name of the property to set.</desc>
117115
</argument>
118-
<argument name="value">
119-
<type name="String"/>
120-
<type name="Number"/>
121-
<type name="Boolean"/>
116+
<argument name="value" type="Anything">
122117
<desc>A value to set for the property.</desc>
123118
</argument>
124119
</signature>
@@ -134,17 +129,9 @@ $( "input" ).change(function() {
134129
<desc>The name of the property to set.</desc>
135130
</argument>
136131
<argument name="function" type="Function">
137-
<argument name="index" type="Integer" />
138-
<argument name="oldPropertyValue">
139-
<type name="String"/>
140-
<type name="Number"/>
141-
<type name="Boolean"/>
142-
</argument>
143-
<return>
144-
<type name="String"/>
145-
<type name="Number"/>
146-
<type name="Boolean"/>
147-
</return>
132+
<argument name="index" type="Integer" />
133+
<argument name="oldPropertyValue" type="Anything" />
134+
<return type="Anything" />
148135
<desc>A function returning the value to set. Receives the index position of the element in the set and the old property value as arguments. Within the function, the keyword <code>this</code> refers to the current element.</desc>
149136
</argument>
150137
</signature>

0 commit comments

Comments
 (0)