mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1254521 - Add return type docs for element.inViewport; r=automatedtester
MozReview-Commit-ID: Budv7EapTfo --HG-- extra : rebase_source : 98d9684610b3f594a66a01228473b1a8d602024a
This commit is contained in:
parent
26578b425f
commit
42c25b995a
@ -773,7 +773,7 @@ element.coordinates = function(
|
||||
/**
|
||||
* This function returns true if the node is in the viewport.
|
||||
*
|
||||
* @param {Element} element
|
||||
* @param {Element} el
|
||||
* Target element.
|
||||
* @param {number=} x
|
||||
* Horizontal offset relative to target. Defaults to the centre of
|
||||
@ -781,6 +781,9 @@ element.coordinates = function(
|
||||
* @param {number=} y
|
||||
* Vertical offset relative to target. Defaults to the centre of
|
||||
* the target's bounding box.
|
||||
*
|
||||
* @return {boolean}
|
||||
* True if if |el| is in viewport, false otherwise.
|
||||
*/
|
||||
element.inViewport = function(el, x = undefined, y = undefined) {
|
||||
let win = el.ownerDocument.defaultView;
|
||||
|
Loading…
Reference in New Issue
Block a user