aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-13 00:05:31 +1000
committerGitHub <noreply@github.com>2018-06-13 00:05:31 +1000
commit7158e507adb11e187380f3148750435f2bd611ae (patch)
treee01357da3280df4d89ce7297de75ac0e281d26c5 /src/js/html5.js
parent70f3390ffead7761606fc3cd439ecac6b53e03eb (diff)
parent87170ab46080ae0d82afd1b39ab3fdf2e3ff1e62 (diff)
downloadplyr-7158e507adb11e187380f3148750435f2bd611ae.tar.lz
plyr-7158e507adb11e187380f3148750435f2bd611ae.tar.xz
plyr-7158e507adb11e187380f3148750435f2bd611ae.zip
Merge pull request #1029 from cky917/develop
remove event listeners in destroy()
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/html5.js b/src/js/html5.js
index c828dfaf..031d3e27 100644
--- a/src/js/html5.js
+++ b/src/js/html5.js
@@ -63,9 +63,8 @@ const html5 = {
// Restore time
const onLoadedMetaData = () => {
player.currentTime = currentTime;
- player.off('loadedmetadata', onLoadedMetaData);
};
- player.on('loadedmetadata', onLoadedMetaData);
+ player.once('loadedmetadata', onLoadedMetaData);
// Load new source
player.media.load();