Aspect ratio tweaks

This commit is contained in:
Sam Potts
2019-06-03 20:13:16 +10:00
parent 0f14865d56
commit 97d9228bed
5 changed files with 17 additions and 19 deletions

View File

@@ -192,11 +192,8 @@ export function toggleHidden(element, hidden) {
hide = !element.hidden;
}
if (hide) {
element.setAttribute('hidden', '');
} else {
element.removeAttribute('hidden');
}
// eslint-disable-next-line no-param-reassign
element.hidden = hide;
}
// Mirror Element.classList.toggle, with IE compatibility for "force" argument