Transition event fix

This commit is contained in:
Sam Potts
2018-01-19 14:22:26 +11:00
parent 5f96ec6ac2
commit 6831c30534
9 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -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) {