The library for web and native user interfaces.
Clean up naming
Fix a small style nit
CommitSyncScript committed
Jun 24, 2013 at 16:09 UTC
a62686622b4fbd2acd903d1879f77623373ff3bd
1 file changed
+3
-3
src/core/ReactComponent.js
+3
-3
@@ -63,7 +63,7 @@ var CHILD_HAS_NO_IDENTITY =
63
64
var CHILD_CAME_FROM_ANOTHER_OWNER = '. It was passed a child from ';
65
66
-var owner_has_warned = {};
66
+var ownerHasWarned = {};
67
68
/**
69
* Helpers for flattening child arguments onto a new array or use an existing
@@ -120,8 +120,8 @@ function assignKey(groupingIndex, child, index) {
120
var childOwnerName =
121
child.props[OWNER] && child.props[OWNER].constructor.displayName;
122
123
- if (currentName && !owner_has_warned.hasOwnProperty(currentName)) {
124
- owner_has_warned[currentName] = true;
123
+ if (currentName && !ownerHasWarned.hasOwnProperty(currentName)) {
124
+ ownerHasWarned[currentName] = true;
125
var message = CHILD_HAS_NO_IDENTITY + currentName;
126
if (childOwnerName && currentName !== childOwnerName) {
127
// Usually the current owner is the offender, but if it accepts