diff --git a/jquery/jquery-1.8.d.ts b/jquery/jquery-1.8.d.ts index 975ecb8d7..99d393804 100644 --- a/jquery/jquery-1.8.d.ts +++ b/jquery/jquery-1.8.d.ts @@ -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; diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 1580d80b1..e7af57f06 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1133,6 +1133,7 @@ function test_prop() { $("input[type='checkbox']").prop({ disabled: true }); + var title: string = $('option:selected', this).prop('title'); } function test_text() {