Merge pull request #4338 from dcousens/patch-1

s/currentPathElemenID/currentPathElementID
This commit is contained in:
Paul O’Shannessy committed 2015-07-09 23:56:50 -07:00
commit 441a6ec378
1 file changed
+4 -4
@@ -106,13 +106,13 @@ function handleTopLevelWithPath(bookKeeping) {
var currentNativeTarget = path[0];
for (var i = 0; i < path.length; i++) {
var currentPathElement = path[i];
var currentPathElemenID = ReactMount.getID(currentPathElement);
var currentPathElementID = ReactMount.getID(currentPathElement);
if (currentPathElement.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE) {
currentNativeTarget = path[i + 1];
}
if (ReactMount.isRenderedByReact(currentPathElement)) {
var newRootID = ReactInstanceHandles.getReactRootIDFromNodeID(
currentPathElemenID
currentPathElementID
);
bookKeeping.ancestors.push(currentPathElement);
@@ -126,10 +126,10 @@ function handleTopLevelWithPath(bookKeeping) {
);
// Jump to the root of this React render tree
while (currentPathElemenID !== newRootID) {
while (currentPathElementID !== newRootID) {
i++;
currentPathElement = path[i];
currentPathElemenID = ReactMount.getID(currentPathElement);
currentPathElementID = ReactMount.getID(currentPathElement);
}
}
}