jQuery offset method might return undefined (#23821)

This commit is contained in:
Damian Senn
2018-02-26 20:47:25 +01:00
committed by Andy
parent 8fe5fb4ff1
commit 574ea0954e
2 changed files with 2 additions and 2 deletions

View File

@@ -1771,7 +1771,7 @@ interface JQuery {
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
* @see {@link https://api.jquery.com/offset/#offset}
*/
offset(): JQueryCoordinates;
offset(): JQueryCoordinates | undefined;
/**
* An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
*

View File

@@ -1771,7 +1771,7 @@ interface JQuery {
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
* @see {@link https://api.jquery.com/offset/#offset}
*/
offset(): JQueryCoordinates;
offset(): JQueryCoordinates | undefined;
/**
* An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
*