aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.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/controls.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/controls.js')
-rw-r--r--src/js/controls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 6d15e486..0e28c222 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -1068,7 +1068,7 @@ const controls = {
};
// Listen for the transition finishing and restore auto height/width
- once(container, transitionEndEvent, restore);
+ once.call(this, container, transitionEndEvent, restore);
// Set dimensions to target
container.style.width = `${size.width}px`;