From f6e89c970df41cf3fd1f7c8e889cd67641439950 Mon Sep 17 00:00:00 2001 From: johnnyreilly Date: Wed, 1 Jan 2014 15:39:08 +0000 Subject: [PATCH] jQuery: JSDoc'd innerWidth / innerWidth removed invalid overloads --- jquery/jquery-tests.ts | 2 -- jquery/jquery.d.ts | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 7cbcc3bd0c..c96468327d 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1751,13 +1751,11 @@ function test_index() { function test_innerHeight() { var p = $("p:first"); $("p:last").text("innerHeight:" + p.innerHeight()); - p.innerHeight(p.innerHeight() * 2).innerHeight(); } function test_innerWidth() { var p = $("p:first"); $("p:last").text("innerWidth:" + p.innerWidth()); - p.innerWidth(p.innerWidth() * 2).innerWidth(); } function test_outerHeight() { diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 4a57216600..5f42dd1af0 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -1013,11 +1013,15 @@ interface JQuery { */ height(func: (index: number, height: number) => string): JQuery; + /** + * Get the current computed height for the first element in the set of matched elements, including padding but not border. + */ innerHeight(): number; - innerHeight(value: number): JQuery; + /** + * Get the current computed width for the first element in the set of matched elements, including padding but not border. + */ innerWidth(): number; - innerWidth(value: number): JQuery; offset(): { left: number; top: number; }; offset(coordinates: any): JQuery;