From f837cc289e4cecebf20e7995cf7dc6b97b572865 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Thu, 22 Jan 2015 18:16:32 -0800 Subject: [PATCH] Move component class instantiation into ReactCompositeComponent We need to move instantiation into the mount phase for context purposes. To do this I moved the shallow rendering stuff into ReactTestUtils and reused more of the existing code for it by instantiating a noop child. Everywhere we refer to the "type" we should pass it to ReactNativeComponent to resolve any string value into the underlying composite. --- src/core/ReactCompositeComponent.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/ReactCompositeComponent.js b/src/core/ReactCompositeComponent.js index 35fe4e4220..e0c73a158a 100644 --- a/src/core/ReactCompositeComponent.js +++ b/src/core/ReactCompositeComponent.js @@ -108,7 +108,6 @@ var ReactCompositeComponentMixin = { */ construct: function(element) { this._currentElement = element; - this._rootNodeID = null; this._instance = null;