Move dev-only flags to only exist on composites (#6709)

_isOwnerNecessary was unused.
This commit is contained in:
Ben Alpert
2016-05-05 15:07:04 -07:00
parent b6a6078167
commit e01bf78a79
2 changed files with 4 additions and 5 deletions
@@ -169,6 +169,10 @@ var ReactCompositeComponentMixin = {
// ComponentWillUnmount shall only be called once
this._calledComponentWillUnmount = false;
if (__DEV__) {
this._warnedAboutRefsInRender = false;
}
},
/**
@@ -135,11 +135,6 @@ function instantiateReactComponent(node) {
instance._mountIndex = 0;
instance._mountImage = null;
if (__DEV__) {
instance._isOwnerNecessary = false;
instance._warnedAboutRefsInRender = false;
}
if (__DEV__) {
var debugID = isEmpty ? 0 : nextDebugID++;
instance._debugID = debugID;