initialize dev variables in dev mode only

This commit is contained in:
Bartosz Kaszubowski
2015-03-05 21:20:48 +01:00
parent fa8961118a
commit a42dcf4f7b
+3 -3
View File
@@ -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) {