Formatting fixes

This commit is contained in:
Sam Potts
2020-03-30 17:04:43 +11:00
parent da943b384c
commit d06881783d
5 changed files with 25 additions and 13 deletions

View File

@ -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);

View File

@ -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