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() {
|
||||
var el = this;
|
||||
if (el.detached) return false;
|
||||
do {
|
||||
if (el.detached) return false;
|
||||
if (el.hidden) return false;
|
||||
} while (el = el.parent);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue