diff options
author | Sam Potts <sam@potts.es> | 2017-11-14 17:27:40 +0100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2017-11-14 17:27:40 +0100 |
commit | c64b8f69403b0287f55f25dc533b41cb8d34075d (patch) | |
tree | 7f7212c63d7d52d9bd086ebdb21353ff8e2c3c39 /src/js/utils.js | |
parent | 022b436c3f51d6a1a9bdf29ff9d34325389ecc82 (diff) | |
download | plyr-c64b8f69403b0287f55f25dc533b41cb8d34075d.tar.lz plyr-c64b8f69403b0287f55f25dc533b41cb8d34075d.tar.xz plyr-c64b8f69403b0287f55f25dc533b41cb8d34075d.zip |
Started on error handling, Safari icon fix
Diffstat (limited to 'src/js/utils.js')
-rw-r--r-- | src/js/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
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, }), }); |