refactoring

This commit is contained in:
Devaev Maxim 2018-08-19 03:50:10 +03:00
parent 4ef978406f
commit 1591b8ed35

View File

@ -144,8 +144,7 @@ function Ui(hid) {
for (var el_item = event.target; el_item && el_item !== document; el_item = el_item.parentNode) { for (var el_item = event.target; el_item && el_item !== document; el_item = el_item.parentNode) {
if (el_item.hasAttribute("data-force-hide-menu")) { if (el_item.hasAttribute("data-force-hide-menu")) {
break; break;
} } else if (el_item.hasAttribute("data-dont-hide-menu")) {
else if (el_item.hasAttribute("data-dont-hide-menu")) {
return; return;
} }
} }