Bug 1254521 - Add return type docs for element.isVisible; r=automatedtester a=test-only

MozReview-Commit-ID: 9tjnHPmYSdq
This commit is contained in:
Andreas Tolfsen 2016-03-08 13:52:38 +00:00
parent 1762b9d9f9
commit 3b1bf39562

View File

@ -812,6 +812,9 @@ element.inViewport = function(el, x = undefined, y = undefined) {
* @param {number=} y
* Vertical offset relative to target. Defaults to the centre of
* the target's bounding box.
*
* @return {boolean}
* True if visible, false otherwise.
*/
element.isVisible = function(el, x = undefined, y = undefined) {
let win = el.ownerDocument.defaultView;