mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Fix jQuery prop method declaration
This commit is contained in:
2
jquery/jquery-1.8.d.ts
vendored
2
jquery/jquery-1.8.d.ts
vendored
@@ -349,7 +349,7 @@ interface JQuery {
|
||||
html(htmlString: string): JQuery;
|
||||
html(): string;
|
||||
|
||||
prop(propertyName: string): bool;
|
||||
prop(propertyName: string): any;
|
||||
prop(propertyName: string, value: any): JQuery;
|
||||
prop(map: any): JQuery;
|
||||
prop(propertyName: string, func: (index: any, oldPropertyValue: any) => any): JQuery;
|
||||
|
||||
@@ -1133,6 +1133,7 @@ function test_prop() {
|
||||
$("input[type='checkbox']").prop({
|
||||
disabled: true
|
||||
});
|
||||
var title: string = $('option:selected', this).prop('title');
|
||||
}
|
||||
|
||||
function test_text() {
|
||||
|
||||
Reference in New Issue
Block a user