aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils.js
diff options
context:
space:
mode:
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) {