diff options
author | Sam Potts <me@sampotts.me> | 2018-01-19 14:22:26 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2018-01-19 14:22:26 +1100 |
commit | 6831c3053470d092c11536a837ebf8c1a8b5c530 (patch) | |
tree | 35b1a81e4b0115e98242da2f0551cc5ed0e52ce9 /src/js/controls.js | |
parent | 5f96ec6ac2765c176645651881fa2d0ba666f58b (diff) | |
download | plyr-6831c3053470d092c11536a837ebf8c1a8b5c530.tar.lz plyr-6831c3053470d092c11536a837ebf8c1a8b5c530.tar.xz plyr-6831c3053470d092c11536a837ebf8c1a8b5c530.zip |
Transition event fix
Diffstat (limited to 'src/js/controls.js')
-rw-r--r-- | src/js/controls.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/controls.js b/src/js/controls.js index 936bee6b..ea30acec 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -845,11 +845,11 @@ const controls = { container.style.height = ''; // Only listen once - utils.off(container, utils.transitionEnd, restore); + utils.off(container, utils.transitionEndEvent, restore); }; // Listen for the transition finishing and restore auto height/width - utils.on(container, utils.transitionEnd, restore); + utils.on(container, utils.transitionEndEvent, restore); // Set dimensions to target container.style.width = `${size.width}px`; |