mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #2740 from facebook/revert-2613-monitor-cloneWithProps
Revert "Monitoring code use of cloneWithProps"
This commit is contained in:
commit
702eef0bf0
1 file changed
-2
@@ -16,7 +16,6 @@ var ReactElement = require('ReactElement');
|
||||
var ReactPropTransferer = require('ReactPropTransferer');
|
||||
|
||||
var keyOf = require('keyOf');
|
||||
var monitorCodeUse = require('monitorCodeUse');
|
||||
var warning = require('warning');
|
||||
|
||||
var CHILDREN_PROP = keyOf({children: null});
|
||||
@@ -31,7 +30,6 @@ var CHILDREN_PROP = keyOf({children: null});
|
||||
* @return {object} a clone of child with props merged in.
|
||||
*/
|
||||
function cloneWithProps(child, props) {
|
||||
monitorCodeUse('react_clone_with_props');
|
||||
if (__DEV__) {
|
||||
warning(
|
||||
!child.ref,
|
||||
|
||||
Reference in new issue
Block a user