From c64b8f69403b0287f55f25dc533b41cb8d34075d Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 14 Nov 2017 17:27:40 +0100 Subject: Started on error handling, Safari icon fix --- src/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/js/utils.js') diff --git a/src/js/utils.js b/src/js/utils.js index a635e021..6a576ded 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -525,7 +525,7 @@ const utils = { }, // Trigger event - dispatchEvent(element, type, bubbles, properties) { + dispatchEvent(element, type, bubbles, detail) { // Bail if no element if (!element || !type) { return; @@ -534,7 +534,7 @@ const utils = { // Create and dispatch the event const event = new CustomEvent(type, { bubbles: utils.is.boolean(bubbles) ? bubbles : false, - detail: Object.assign({}, properties, { + detail: Object.assign({}, detail, { plyr: this instanceof Plyr ? this : null, }), }); -- cgit v1.2.3