1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-22 12:53:23 +02:00

Broadening the utility

This commit is contained in:
Antonio Laguna
2017-04-29 22:52:33 +02:00
parent d2e6f562f2
commit db0955305b

View File

@@ -128,13 +128,12 @@ export default class DOM {
}
/**
* Checks if the element is visible.This is only intended
* to be used in conjunction with DOM.hide and DOM.show
* Checks if the element is visible.
* @param {Element} el Element to check.
* @return {boolean}
*/
static isVisible(el) {
return el.style.display == '';
return (el.offsetParent !== null);
}
/**