Add visibility query
This commit is contained in:
parent
e433207968
commit
1d573f4179
@ -51,6 +51,10 @@ class Popup {
|
|||||||
this.showAt({x: posX, y: posY}, content);
|
this.showAt({x: posX, y: posY}, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
visible() {
|
||||||
|
return this.popup !== null && this.popup.style.visibility !== 'hidden';
|
||||||
|
}
|
||||||
|
|
||||||
hide() {
|
hide() {
|
||||||
if (this.popup !== null) {
|
if (this.popup !== null) {
|
||||||
this.popup.style.visibility = 'hidden';
|
this.popup.style.visibility = 'hidden';
|
||||||
|
Loading…
Reference in New Issue
Block a user