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) {
if (elem) {
return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
} else {
return false;
}
return elem && !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
}
doTarget(target, action) {