diff options
author | Albin Larsson <mail@albinlarsson.com> | 2018-06-12 19:43:08 +0200 |
---|---|---|
committer | Albin Larsson <mail@albinlarsson.com> | 2018-06-12 20:00:41 +0200 |
commit | 927326f715132d56c79de70e9b871594514caa2f (patch) | |
tree | 8233bd7d1a5c239016ac594df316d9418c027992 /src/js/controls.js | |
parent | 53933dff7eaa8074e57cccc7cab18d5be6c83fc4 (diff) | |
download | plyr-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.js | 2 |
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`; |