aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils/elements.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-04-30 23:44:05 +1000
committerSam Potts <sam@potts.es>2019-04-30 23:44:05 +1000
commit80aa6ffe435b170466838f977d52438a95e22186 (patch)
tree0243268c1dd2af2ded86c03f2ea222032cb58527 /src/js/utils/elements.js
parent0694e586502f7ce85ce7858b67d515403b48c87e (diff)
downloadplyr-80aa6ffe435b170466838f977d52438a95e22186.tar.lz
plyr-80aa6ffe435b170466838f977d52438a95e22186.tar.xz
plyr-80aa6ffe435b170466838f977d52438a95e22186.zip
Linting changes
Diffstat (limited to 'src/js/utils/elements.js')
-rw-r--r--src/js/utils/elements.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/js/utils/elements.js b/src/js/utils/elements.js
index 9c1ddebc..94744771 100644
--- a/src/js/utils/elements.js
+++ b/src/js/utils/elements.js
@@ -17,7 +17,6 @@ export function wrap(elements, wrapper) {
.reverse()
.forEach((element, index) => {
const child = index > 0 ? wrapper.cloneNode(true) : wrapper;
-
// Cache the current parent and sibling.
const parent = element.parentNode;
const sibling = element.nextSibling;
@@ -145,12 +144,10 @@ export function getAttributesFromSelector(sel, existingAttributes) {
const selector = s.trim();
const className = selector.replace('.', '');
const stripped = selector.replace(/[[\]]/g, '');
-
// Get the parts and value
const parts = stripped.split('=');
const [key] = parts;
const value = parts.length > 1 ? parts[1].replace(/["']/g, '') : '';
-
// Get the first character
const start = selector.charAt(0);