Skip to content

Commit

Permalink
fix jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored and shs96c committed Apr 30, 2018
1 parent 665ee8d commit 471efd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions javascript/atoms/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,15 @@ bot.dom.isShown_ = function(elem, ignoreOpacity, parentsDisplayedFn) {
bot.dom.isShown = function(elem, opt_ignoreOpacity) {
/**
* Determines whether an element or its parents have `display: none` set
* @param {?Node}
* @param {!Node} e the element
* @return {boolean}
*/
function displayed(e) {
if (bot.dom.isElement(e) && bot.dom.getEffectiveStyle(e, 'display') == 'none') {
return false;
if (bot.dom.isElement(e)) {
var elem = /** @type {!Element} */ (e);
if (bot.dom.getEffectiveStyle(elem, 'display') == 'none') {
return false;
}
}

var parent = bot.dom.getParentNodeInComposedDom(e);
Expand Down

0 comments on commit 471efd9

Please sign in to comment.