refactor(menu-bubble-hide): break conditional to multiple lines

This commit is contained in:
Christopher Brown 2019-10-03 11:01:22 +02:00
parent 527a7443f1
commit cfa506e89e

View File

@ -143,7 +143,8 @@ class Menu {
} }
hide(event) { hide(event) {
if (event && event.relatedTarget && this.options.element.parentNode.contains(event.relatedTarget)) { if (event && event.relatedTarget
&& this.options.element.parentNode.contains(event.relatedTarget)) {
return return
} }