File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,22 @@ exports.isIE9 =
53
53
*/
54
54
55
55
if ( inBrowser && ! exports . isIE9 ) {
56
- if (
56
+ var isWebkitTrans =
57
57
window . ontransitionend === undefined &&
58
58
window . onwebkittransitionend !== undefined
59
- ) {
60
- exports . transitionProp = 'WebkitTransition'
61
- exports . transitionEndEvent = 'webkitTransitionEnd'
62
- } else {
63
- exports . transitionProp = 'transition'
64
- exports . transitionEndEvent = 'transitionend'
65
- }
66
-
67
- if (
59
+ var isWebkitAnim =
68
60
window . onanimationend === undefined &&
69
61
window . onwebkitanimationend !== undefined
70
- ) {
71
- exports . animationProp = 'WebkitAnimation'
72
- exports . animationEndEvent = 'webkitAnimationEnd'
73
- } else {
74
- exports . animationProp = 'animation'
75
- exports . animationEndEvent = 'animationend'
76
- }
62
+ exports . transitionProp = isWebkitTrans
63
+ ? 'WebkitTransition'
64
+ : 'transition'
65
+ exports . transitionEndEvent = isWebkitTrans
66
+ ? 'webkitTransitionEnd'
67
+ : 'transitionend'
68
+ exports . animationProp = isWebkitAnim
69
+ ? 'WebkitAnimation'
70
+ : 'animation'
71
+ exports . animationEndEvent = isWebkitAnim
72
+ ? 'webkitAnimationEnd'
73
+ : 'animationend'
77
74
}
You can’t perform that action at this time.
0 commit comments