mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 03:25:45 +00:00
fix: check detached state in .visible. fixes #58.
This commit is contained in:
parent
9a70b404af
commit
41994632cf
@ -2294,8 +2294,8 @@ main:
|
|||||||
|
|
||||||
Element.prototype.__defineGetter__('visible', function() {
|
Element.prototype.__defineGetter__('visible', function() {
|
||||||
var el = this;
|
var el = this;
|
||||||
if (el.detached) return false;
|
|
||||||
do {
|
do {
|
||||||
|
if (el.detached) return false;
|
||||||
if (el.hidden) return false;
|
if (el.hidden) return false;
|
||||||
} while (el = el.parent);
|
} while (el = el.parent);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user