mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge remote-tracking branch 'iancmyers/icm/cleanup-react-empty-component-registry' into 0.14-stable
This commit is contained in:
@@ -25,6 +25,10 @@ var ReactEmptyComponentInjection = {
|
||||
},
|
||||
};
|
||||
|
||||
function registerNullComponentID() {
|
||||
ReactEmptyComponentRegistry.registerNullComponentID(this._rootNodeID);
|
||||
}
|
||||
|
||||
var ReactEmptyComponent = function(instantiate) {
|
||||
this._currentElement = null;
|
||||
this._rootNodeID = null;
|
||||
@@ -34,7 +38,7 @@ assign(ReactEmptyComponent.prototype, {
|
||||
construct: function(element) {
|
||||
},
|
||||
mountComponent: function(rootID, transaction, context) {
|
||||
ReactEmptyComponentRegistry.registerNullComponentID(rootID);
|
||||
transaction.getReactMountReady().enqueue(registerNullComponentID, this);
|
||||
this._rootNodeID = rootID;
|
||||
return ReactReconciler.mountComponent(
|
||||
this._renderedComponent,
|
||||
|
||||
Reference in New Issue
Block a user