Merge branch 'ARI-5643' into qa

This commit is contained in:
Barbara Miller 2018-03-30 18:05:03 -07:00
commit 8609271e8c
2 changed files with 2 additions and 6 deletions

View File

@ -237,4 +237,4 @@
behavior_js_template: umbraBehavior.js.j2
default_parameters:
actions:
- selector: button.sc-button-play, .playButton, div.soundItem, .jwlist>a
- selector: button.sc-button-play, .playButton, div.soundItem, .jwlist>a, button.js-display-this-media

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) {