Skip to content

Commit 471efd9

Browse files
43081jshs96c
authored andcommitted
fix jsdoc
1 parent 665ee8d commit 471efd9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

javascript/atoms/dom.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,15 @@ bot.dom.isShown_ = function(elem, ignoreOpacity, parentsDisplayedFn) {
567567
bot.dom.isShown = function(elem, opt_ignoreOpacity) {
568568
/**
569569
* Determines whether an element or its parents have `display: none` set
570-
* @param {?Node}
570+
* @param {!Node} e the element
571571
* @return {boolean}
572572
*/
573573
function displayed(e) {
574-
if (bot.dom.isElement(e) && bot.dom.getEffectiveStyle(e, 'display') == 'none') {
575-
return false;
574+
if (bot.dom.isElement(e)) {
575+
var elem = /** @type {!Element} */ (e);
576+
if (bot.dom.getEffectiveStyle(elem, 'display') == 'none') {
577+
return false;
578+
}
576579
}
577580

578581
var parent = bot.dom.getParentNodeInComposedDom(e);

0 commit comments

Comments
 (0)