@samitouri / QOS-React / commits / 22e2bf7684

Return event name from getVendorPrefixedEventName (#11951)

Brandon Dail committed Jan 2, 2018 at 10:46 UTC 22e2bf7684d0a55b520f7334feb716d0cbee784d
3 files changed +27 -30
packages/react-dom/src/events/BrowserEventConstants.js
+4 -7
@@ -16,11 +16,9 @@ import getVendorPrefixedEventName from './getVendorPrefixedEventName';
16 */
17 const topLevelTypes = {
18 topAbort: 'abort',
19 - topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend',
20 - topAnimationIteration:
21 - getVendorPrefixedEventName('animationiteration') || 'animationiteration',
22 - topAnimationStart:
23 - getVendorPrefixedEventName('animationstart') || 'animationstart',
19 + topAnimationEnd: getVendorPrefixedEventName('animationend'),
20 + topAnimationIteration: getVendorPrefixedEventName('animationiteration'),
21 + topAnimationStart: getVendorPrefixedEventName('animationstart'),
22 topBlur: 'blur',
23 topCancel: 'cancel',
24 topCanPlay: 'canplay',
@@ -81,8 +79,7 @@ const topLevelTypes = {
79 topTouchEnd: 'touchend',
80 topTouchMove: 'touchmove',
81 topTouchStart: 'touchstart',
84 - topTransitionEnd:
85 - getVendorPrefixedEventName('transitionend') || 'transitionend',
82 + topTransitionEnd: getVendorPrefixedEventName('transitionend'),
83 topVolumeChange: 'volumechange',
84 topWaiting: 'waiting',
85 topWheel: 'wheel',
packages/react-dom/src/events/getVendorPrefixedEventName.js
+1 -1
@@ -89,7 +89,7 @@ function getVendorPrefixedEventName(eventName) {
89 }
90 }
91
92 - return '';
92 + return eventName;
93 }
94
95 export default getVendorPrefixedEventName;
scripts/rollup/results.json
+22 -22
@@ -46,78 +46,78 @@
46 "filename": "react-dom.development.js",
47 "bundleType": "UMD_DEV",
48 "packageName": "react-dom",
49 - "size": 560498,
50 - "gzip": 132755
49 + "size": 560424,
50 + "gzip": 132739
51 },
52 {
53 "filename": "react-dom.production.min.js",
54 "bundleType": "UMD_PROD",
55 "packageName": "react-dom",
56 - "size": 93742,
57 - "gzip": 30770
56 + "size": 93669,
57 + "gzip": 30753
58 },
59 {
60 "filename": "react-dom.development.js",
61 "bundleType": "NODE_DEV",
62 "packageName": "react-dom",
63 - "size": 544531,
64 - "gzip": 128982
63 + "size": 544457,
64 + "gzip": 128965
65 },
66 {
67 "filename": "react-dom.production.min.js",
68 "bundleType": "NODE_PROD",
69 "packageName": "react-dom",
70 - "size": 92163,
71 - "gzip": 29827
70 + "size": 92090,
71 + "gzip": 29815
72 },
73 {
74 "filename": "ReactDOM-dev.js",
75 "bundleType": "FB_DEV",
76 "packageName": "react-dom",
77 - "size": 562017,
78 - "gzip": 131222
77 + "size": 561931,
78 + "gzip": 131204
79 },
80 {
81 "filename": "ReactDOM-prod.js",
82 "bundleType": "FB_PROD",
83 "packageName": "react-dom",
84 - "size": 265467,
85 - "gzip": 51292
84 + "size": 265369,
85 + "gzip": 51278
86 },
87 {
88 "filename": "react-dom-test-utils.development.js",
89 "bundleType": "UMD_DEV",
90 "packageName": "react-dom",
91 - "size": 41376,
92 - "gzip": 11760
91 + "size": 41302,
92 + "gzip": 11748
93 },
94 {
95 "filename": "react-dom-test-utils.production.min.js",
96 "bundleType": "UMD_PROD",
97 "packageName": "react-dom",
98 - "size": 10656,
99 - "gzip": 3935
98 + "size": 10583,
99 + "gzip": 3916
100 },
101 {
102 "filename": "react-dom-test-utils.development.js",
103 "bundleType": "NODE_DEV",
104 "packageName": "react-dom",
105 - "size": 36113,
106 - "gzip": 10297
105 + "size": 36039,
106 + "gzip": 10283
107 },
108 {
109 "filename": "react-dom-test-utils.production.min.js",
110 "bundleType": "NODE_PROD",
111 "packageName": "react-dom",
112 - "size": 10233,
113 - "gzip": 3848
112 + "size": 10160,
113 + "gzip": 3834
114 },
115 {
116 "filename": "ReactTestUtils-dev.js",
117 "bundleType": "FB_DEV",
118 "packageName": "react-dom",
119 - "size": 36840,
120 - "gzip": 10379
119 + "size": 36754,
120 + "gzip": 10368
121 },
122 {
123 "filename": "react-dom-unstable-native-dependencies.development.js",