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:
Andreas Tolfsen 2016-03-08 13:53:00 +00:00
parent 26578b425f
commit 42c25b995a

View File

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