mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
initialize dev variables in dev mode only
This commit is contained in:
@@ -36,11 +36,11 @@ function shouldUpdateReactComponent(prevElement, nextElement) {
|
||||
prevElement.type === nextElement.type &&
|
||||
prevElement.key === nextElement.key) {
|
||||
var ownersMatch = prevElement._owner === nextElement._owner;
|
||||
var prevName = null;
|
||||
var nextName = null;
|
||||
var nextDisplayName = null;
|
||||
if (__DEV__) {
|
||||
if (!ownersMatch) {
|
||||
var prevName = null;
|
||||
var nextName = null;
|
||||
var nextDisplayName = null;
|
||||
if (prevElement._owner != null &&
|
||||
prevElement._owner.getPublicInstance() != null &&
|
||||
prevElement._owner.getPublicInstance().constructor != null) {
|
||||
|
||||
Reference in New Issue
Block a user