Fix jQuery prop method declaration

This commit is contained in:
Boris Yankov
2012-11-19 17:41:04 +02:00
parent 9e499b18c9
commit a8c6be1705
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -1133,6 +1133,7 @@ function test_prop() {
$("input[type='checkbox']").prop({
disabled: true
});
var title: string = $('option:selected', this).prop('title');
}
function test_text() {