From a8c6be1705848df3ab5aa563ae00f880e715c77f Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Mon, 19 Nov 2012 17:41:04 +0200 Subject: [PATCH] Fix jQuery prop method declaration --- jquery/jquery-1.8.d.ts | 2 +- jquery/jquery-tests.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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() {