Merge remote-tracking branch 'iancmyers/icm/cleanup-react-empty-component-registry' into 0.14-stable

This commit is contained in:
Dan Abramov
2016-03-29 16:42:56 +01:00
@@ -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,