This commit is contained in:
Sam Potts
2018-09-25 23:29:43 +10:00
parent d9565e9250
commit 87072cb690
3 changed files with 3 additions and 5 deletions

View File

@ -15,9 +15,7 @@ export const transitionEndEvent = (() => {
transition: 'transitionend',
};
const type = Object.keys(events).find(
event => element.style[event] !== undefined,
);
const type = Object.keys(events).find(event => element.style[event] !== undefined);
return is.string(type) ? events[type] : false;
})();