diff options
author | Sam Potts <sam@potts.es> | 2020-03-30 17:04:43 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-03-30 17:04:43 +1100 |
commit | d06881783d7c8a9faa5d902da5ec33bc74f3aa38 (patch) | |
tree | 9a38dd562153f9172c9e489546e92f7c039804dc /src/js/utils | |
parent | da943b384ca334cad66fd261cb9a0f924716da9d (diff) | |
download | plyr-d06881783d7c8a9faa5d902da5ec33bc74f3aa38.tar.lz plyr-d06881783d7c8a9faa5d902da5ec33bc74f3aa38.tar.xz plyr-d06881783d7c8a9faa5d902da5ec33bc74f3aa38.zip |
Formatting fixes
Diffstat (limited to 'src/js/utils')
-rw-r--r-- | src/js/utils/elements.js | 2 | ||||
-rw-r--r-- | src/js/utils/events.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/js/utils/elements.js b/src/js/utils/elements.js index bdf18bfd..acff0dd9 100644 --- a/src/js/utils/elements.js +++ b/src/js/utils/elements.js @@ -221,7 +221,7 @@ export function hasClass(element, className) { // Element matches selector export function matches(element, selector) { - const {prototype} = Element; + const { prototype } = Element; function match() { return Array.from(document.querySelectorAll(selector)).includes(this); diff --git a/src/js/utils/events.js b/src/js/utils/events.js index 31571b2d..48300b6b 100644 --- a/src/js/utils/events.js +++ b/src/js/utils/events.js @@ -90,7 +90,7 @@ export function triggerEvent(element, type = '', bubbles = false, detail = {}) { // Create and dispatch the event const event = new CustomEvent(type, { bubbles, - detail: { ...detail, plyr: this,}, + detail: { ...detail, plyr: this }, }); // Dispatch the event |