aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/utils.js')
-rw-r--r--src/js/utils.js4
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,
}),
});