jQuery: JSDoc'd innerWidth / innerWidth

removed invalid overloads
This commit is contained in:
johnnyreilly
2014-01-01 15:39:08 +00:00
parent 4d7fdffa2e
commit f6e89c970d
2 changed files with 6 additions and 4 deletions

View File

@@ -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() {

8
jquery/jquery.d.ts vendored
View File

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