s/currentPathElemenID/currentPathElementID

This commit is contained in:
Daniel Cousens committed 2015-07-10 16:38:39 +10:00
1 parent 37cd9277a9
commit dfe5f19917
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);
}
}
}