fix: check detached state in .visible. fixes #58.

This commit is contained in:
Christopher Jeffrey 2014-05-16 18:51:33 -05:00
parent 9a70b404af
commit 41994632cf
1 changed files with 1 additions and 1 deletions

View File

@ -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;