@samitouri / QOS-React-2 / commits / dfe5f19917

s/currentPathElemenID/currentPathElementID

Daniel Cousens committed Jul 10, 2015 at 16:38 UTC dfe5f19917532790a85739152f78209c617bbfbc
1 file changed +4 -4
src/renderers/dom/client/ReactEventListener.js
+4 -4
@@ -106,13 +106,13 @@ function handleTopLevelWithPath(bookKeeping) {
106 var currentNativeTarget = path[0];
107 for (var i = 0; i < path.length; i++) {
108 var currentPathElement = path[i];
109 - var currentPathElemenID = ReactMount.getID(currentPathElement);
109 + var currentPathElementID = ReactMount.getID(currentPathElement);
110 if (currentPathElement.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE) {
111 currentNativeTarget = path[i + 1];
112 }
113 if (ReactMount.isRenderedByReact(currentPathElement)) {
114 var newRootID = ReactInstanceHandles.getReactRootIDFromNodeID(
115 - currentPathElemenID
115 + currentPathElementID
116 );
117 bookKeeping.ancestors.push(currentPathElement);
118
@@ -126,10 +126,10 @@ function handleTopLevelWithPath(bookKeeping) {
126 );
127
128 // Jump to the root of this React render tree
129 - while (currentPathElemenID !== newRootID) {
129 + while (currentPathElementID !== newRootID) {
130 i++;
131 currentPathElement = path[i];
132 - currentPathElemenID = ReactMount.getID(currentPathElement);
132 + currentPathElementID = ReactMount.getID(currentPathElement);
133 }
134 }
135 }