aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorAlbin Larsson <mail@albinlarsson.com>2018-06-12 19:43:08 +0200
committerAlbin Larsson <mail@albinlarsson.com>2018-06-12 20:00:41 +0200
commit927326f715132d56c79de70e9b871594514caa2f (patch)
tree8233bd7d1a5c239016ac594df316d9418c027992 /src/js/plyr.js
parent53933dff7eaa8074e57cccc7cab18d5be6c83fc4 (diff)
downloadplyr-927326f715132d56c79de70e9b871594514caa2f.tar.lz
plyr-927326f715132d56c79de70e9b871594514caa2f.tar.xz
plyr-927326f715132d56c79de70e9b871594514caa2f.zip
Also remove 'once' event listeners when destroying (they may still be waiting)
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 71619851..543291e7 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -975,7 +975,7 @@ class Plyr {
* @param {function} callback - Callback for when event occurs
*/
once(event, callback) {
- once(this.elements.container, event, callback);
+ once.call(this, this.elements.container, event, callback);
}
/**
* Remove event listeners