@samitouri / QOS-React-2 / commits / e01bf78a79

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

_isOwnerNecessary was unused.

Ben Alpert committed May 5, 2016 at 15:07 UTC e01bf78a79b3562f2f6563b150b9c6affee5f2b9
2 files changed +4 -5
src/renderers/shared/reconciler/ReactCompositeComponent.js
+4
@@ -169,6 +169,10 @@ var ReactCompositeComponentMixin = {
169
170 // ComponentWillUnmount shall only be called once
171 this._calledComponentWillUnmount = false;
172 +
173 + if (__DEV__) {
174 + this._warnedAboutRefsInRender = false;
175 + }
176 },
177
178 /**
src/renderers/shared/reconciler/instantiateReactComponent.js
-5
@@ -135,11 +135,6 @@ function instantiateReactComponent(node) {
135 instance._mountIndex = 0;
136 instance._mountImage = null;
137
138 - if (__DEV__) {
139 - instance._isOwnerNecessary = false;
140 - instance._warnedAboutRefsInRender = false;
141 - }
142 -
138 if (__DEV__) {
139 var debugID = isEmpty ? 0 : nextDebugID++;
140 instance._debugID = debugID;