@samitouri / QOS-React / commits / 7b7eddcc72

Add @preventMunge directives to classes (#7994)

Dan Abramov committed Oct 17, 2016 at 21:07 UTC 7b7eddcc720922fb42ba11e2560627ef60184a3a
4 files changed +6 -2
src/renderers/testing/ReactTestEmptyComponent.js
+2 -1
@@ -7,6 +7,7 @@
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 * @providesModule ReactTestEmptyComponent
10 + * @preventMunge
11 * @flow
12 */
13
@@ -14,7 +15,7 @@
15
16 class ReactTestEmptyComponent {
17 _currentElement: null;
17 -
18 +
19 constructor() {
20 this._currentElement = null;
21 }
src/renderers/testing/ReactTestRenderer.js
+1
@@ -7,6 +7,7 @@
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 * @providesModule ReactTestRenderer
10 + * @preventMunge
11 * @flow
12 */
13
src/renderers/testing/ReactTestTextComponent.js
+2 -1
@@ -7,6 +7,7 @@
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 * @providesModule ReactTestTextComponent
10 + * @preventMunge
11 * @flow
12 */
13
@@ -16,7 +17,7 @@ import type { ReactText } from 'ReactTypes';
17
18 class ReactTestTextComponent {
19 _currentElement: ReactText;
19 -
20 +
21 constructor(element: ReactText) {
22 this._currentElement = element;
23 }
src/test/ReactShallowRenderer.js
+1
@@ -7,6 +7,7 @@
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 * @providesModule ReactShallowRenderer
10 + * @preventMunge
11 */
12
13 'use strict';