diff options
author | Sam Potts <sam@potts.es> | 2020-08-30 16:10:15 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-08-30 16:10:25 +1000 |
commit | 18b3f23c694b9b3154788fa0f612621be8618a2b (patch) | |
tree | 3d0cf5a9ccd7f3082ac6b1b58480e135a6f18237 /src/js/utils/elements.js | |
parent | 11e48b018157ac75f1db1cc433b7067a3d6ab522 (diff) | |
download | plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.tar.lz plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.tar.xz plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.zip |
chore: update packages and linting
Diffstat (limited to 'src/js/utils/elements.js')
-rw-r--r-- | src/js/utils/elements.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/utils/elements.js b/src/js/utils/elements.js index 1d13b701..e8d2e595 100644 --- a/src/js/utils/elements.js +++ b/src/js/utils/elements.js @@ -138,7 +138,7 @@ export function getAttributesFromSelector(sel, existingAttributes) { const attributes = {}; const existing = extend({}, existingAttributes); - sel.split(',').forEach(s => { + sel.split(',').forEach((s) => { // Remove whitespace const selector = s.trim(); const className = selector.replace('.', ''); @@ -198,7 +198,7 @@ export function toggleHidden(element, hidden) { // Mirror Element.classList.toggle, with IE compatibility for "force" argument export function toggleClass(element, className, force) { if (is.nodeList(element)) { - return Array.from(element).map(e => toggleClass(e, className, force)); + return Array.from(element).map((e) => toggleClass(e, className, force)); } if (is.element(element)) { |