mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #4338 from dcousens/patch-1
s/currentPathElemenID/currentPathElementID
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user