From 1f2e78359facd976e32d7f1254926b554354efaf Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 21 Apr 2016 18:56:42 +0100 Subject: [PATCH] No need for a special case here --- src/renderers/shared/reconciler/instantiateReactComponent.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderers/shared/reconciler/instantiateReactComponent.js b/src/renderers/shared/reconciler/instantiateReactComponent.js index 07f0766d65..0e228725e1 100644 --- a/src/renderers/shared/reconciler/instantiateReactComponent.js +++ b/src/renderers/shared/reconciler/instantiateReactComponent.js @@ -84,12 +84,10 @@ var nextDebugID = 1; function instantiateReactComponent(node) { var instance; - var isEmpty = false; var isNative = false; var isComposite = false; if (node === null || node === false) { - isEmpty = true; instance = ReactEmptyComponent.create(instantiateReactComponent); } else if (typeof node === 'object') { var element = node; @@ -148,7 +146,7 @@ function instantiateReactComponent(node) { } if (__DEV__) { - instance._debugID = isEmpty ? 0 : nextDebugID++; + instance._debugID = nextDebugID++; var displayName = getDisplayName(instance); ReactInstrumentation.debugTool.onSetIsComposite(instance._debugID, isComposite); ReactInstrumentation.debugTool.onSetDisplayName(instance._debugID, displayName);