less is more

This commit is contained in:
Barbara Miller 2018-03-23 14:17:22 -07:00
parent 51977908ec
commit 426ca48554

View file

@ -124,11 +124,7 @@ class UmbraBehavior {
} }
isVisible(elem) { isVisible(elem) {
if (elem) { return elem && !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
} else {
return false;
}
} }
doTarget(target, action) { doTarget(target, action) {