aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2018-01-19 14:22:26 +1100
committerSam Potts <me@sampotts.me>2018-01-19 14:22:26 +1100
commit6831c3053470d092c11536a837ebf8c1a8b5c530 (patch)
tree35b1a81e4b0115e98242da2f0551cc5ed0e52ce9 /src/js/utils.js
parent5f96ec6ac2765c176645651881fa2d0ba666f58b (diff)
downloadplyr-6831c3053470d092c11536a837ebf8c1a8b5c530.tar.lz
plyr-6831c3053470d092c11536a837ebf8c1a8b5c530.tar.xz
plyr-6831c3053470d092c11536a837ebf8c1a8b5c530.zip
Transition event fix
Diffstat (limited to 'src/js/utils.js')
-rw-r--r--src/js/utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/utils.js b/src/js/utils.js
index 930d3e9f..81da8821 100644
--- a/src/js/utils.js
+++ b/src/js/utils.js
@@ -728,7 +728,7 @@ const utils = {
},
// Get the transition end event
- transitionEnd: (() => {
+ get transitionEndEvent() {
const element = document.createElement('span');
const events = {
@@ -740,8 +740,8 @@ const utils = {
const type = Object.keys(events).find(event => element.style[event] !== undefined);
- return typeof type === 'string' ? type : false;
- })(),
+ return utils.is.string(type) ? events[type] : false;
+ },
// Force repaint of element
repaint(element) {