mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-22 21:03:23 +02:00
Broadening the utility
This commit is contained in:
@@ -128,13 +128,12 @@ export default class DOM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the element is visible.This is only intended
|
* Checks if the element is visible.
|
||||||
* to be used in conjunction with DOM.hide and DOM.show
|
|
||||||
* @param {Element} el Element to check.
|
* @param {Element} el Element to check.
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
static isVisible(el) {
|
static isVisible(el) {
|
||||||
return el.style.display == '';
|
return (el.offsetParent !== null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user