@samitouri / QOS-React / commits / 52e13922b5

removes Synthetic event forwarding module shims (#9945)

Dominic Gannaway committed Jun 15, 2017 at 18:07 UTC 52e13922b50b2b772452f78019ff46c73658ca60
4 files changed -61
scripts/rollup/shims/facebook-www/SyntheticEvent.js deleted
-19
@@ -1,19 +0,0 @@
1 -/**
2 - * Copyright 2013-present, Facebook, Inc.
3 - * All rights reserved.
4 - *
5 - * This source code is licensed under the BSD-style license found in the
6 - * LICENSE file in the root directory of this source tree. An additional grant
7 - * of patent rights can be found in the PATENTS file in the same directory.
8 - *
9 - * @providesModule SyntheticEvent
10 - */
11 -
12 -'use strict';
13 -
14 -const {
15 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16 -} = require('ReactDOM-fb');
17 -
18 -module.exports =
19 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SyntheticEvent;
scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js deleted
-19
@@ -1,19 +0,0 @@
1 -/**
2 - * Copyright 2013-present, Facebook, Inc.
3 - * All rights reserved.
4 - *
5 - * This source code is licensed under the BSD-style license found in the
6 - * LICENSE file in the root directory of this source tree. An additional grant
7 - * of patent rights can be found in the PATENTS file in the same directory.
8 - *
9 - * @providesModule SyntheticKeyboardEvent
10 - */
11 -
12 -'use strict';
13 -
14 -const {
15 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16 -} = require('ReactDOM-fb');
17 -
18 -module.exports =
19 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SyntheticKeyboardEvent;
scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js deleted
-19
@@ -1,19 +0,0 @@
1 -/**
2 - * Copyright 2013-present, Facebook, Inc.
3 - * All rights reserved.
4 - *
5 - * This source code is licensed under the BSD-style license found in the
6 - * LICENSE file in the root directory of this source tree. An additional grant
7 - * of patent rights can be found in the PATENTS file in the same directory.
8 - *
9 - * @providesModule SyntheticMouseEvent
10 - */
11 -
12 -'use strict';
13 -
14 -const {
15 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16 -} = require('ReactDOM-fb');
17 -
18 -module.exports =
19 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SyntheticMouseEvent;
src/fb/ReactDOMFiberFBEntry.js
-4
@@ -25,10 +25,6 @@ Object.assign(
25 PooledClass: require('PooledClass'),
26 ReactDOMSelection: require('ReactDOMSelection'),
27 ReactInputSelection: require('ReactInputSelection'),
28 - // These are mostly used in incorrect Flow typings and are codemoddable:
29 - SyntheticEvent: require('SyntheticEvent'),
30 - SyntheticKeyboardEvent: require('SyntheticKeyboardEvent'),
31 - SyntheticMouseEvent: require('SyntheticMouseEvent'),
28 // These are real internal dependencies that are trickier to remove:
29 ReactBrowserEventEmitter: require('ReactBrowserEventEmitter'),
30 ReactErrorUtils: require('ReactErrorUtils'),