From a62686622b4fbd2acd903d1879f77623373ff3bd Mon Sep 17 00:00:00 2001 From: CommitSyncScript Date: Mon, 24 Jun 2013 16:09:35 -0700 Subject: [PATCH] Clean up naming Fix a small style nit --- src/core/ReactComponent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/ReactComponent.js b/src/core/ReactComponent.js index f4333af4a6..5db60d5fc5 100644 --- a/src/core/ReactComponent.js +++ b/src/core/ReactComponent.js @@ -63,7 +63,7 @@ var CHILD_HAS_NO_IDENTITY = var CHILD_CAME_FROM_ANOTHER_OWNER = '. It was passed a child from '; -var owner_has_warned = {}; +var ownerHasWarned = {}; /** * Helpers for flattening child arguments onto a new array or use an existing @@ -120,8 +120,8 @@ function assignKey(groupingIndex, child, index) { var childOwnerName = child.props[OWNER] && child.props[OWNER].constructor.displayName; - if (currentName && !owner_has_warned.hasOwnProperty(currentName)) { - owner_has_warned[currentName] = true; + if (currentName && !ownerHasWarned.hasOwnProperty(currentName)) { + ownerHasWarned[currentName] = true; var message = CHILD_HAS_NO_IDENTITY + currentName; if (childOwnerName && currentName !== childOwnerName) { // Usually the current owner is the offender, but if it accepts