diff options
author | Sam Potts <sam@potts.es> | 2020-06-27 21:59:35 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-11-14 13:01:36 +1100 |
commit | c3e163741fd5a4a88e56c9d425109f2014c8511f (patch) | |
tree | c1651e8b90d096a6000595d03d533a6e15ac0a0e /src/js/utils/elements.js | |
parent | 1c715bc88922e20360c7ad2d5b625cccb16247fa (diff) | |
download | plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.lz plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.xz plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.zip |
Linting changes
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)) { |