From 5fbb307e24e144614b559bac57d1dfab6f52f2f4 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sat, 9 Jun 2018 20:07:08 -0700 Subject: [PATCH] Fix some typos in dumpReactTree.js (#19636) Summary: Simple doc fixes Closes https://github.com/facebook/react-native/pull/19636 Differential Revision: D8344481 Pulled By: TheSavior fbshipit-source-id: b6fa064f70793bdaf1d6346b2775373b74c2ae3b --- Libraries/BugReporting/dumpReactTree.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Libraries/BugReporting/dumpReactTree.js b/Libraries/BugReporting/dumpReactTree.js index 844585714..7cbb2530f 100644 --- a/Libraries/BugReporting/dumpReactTree.js +++ b/Libraries/BugReporting/dumpReactTree.js @@ -51,14 +51,14 @@ function getReactTree() { } /* -function dumpNode(node: Object, identation: number) { +function dumpNode(node: Object, indentation: number) { const data = getReactData(node); if (data.nodeType === 'Text') { - return indent(identation) + data.text + '\n'; + return indent(indentation) + data.text + '\n'; } else if (data.nodeType === 'Empty') { return ''; } - let output = indent(identation) + `<${data.name}`; + let output = indent(indentation) + `<${data.name}`; if (data.nodeType === 'Composite') { for (const propName of Object.getOwnPropertyNames(data.props || {})) { if (isNormalProp(propName)) { @@ -76,11 +76,11 @@ function dumpNode(node: Object, identation: number) { } let childOutput = ''; for (const child of data.children || []) { - childOutput += dumpNode(child, identation + 1); + childOutput += dumpNode(child, indentation + 1); } if (childOutput) { - output += '>\n' + childOutput + indent(identation) + `\n`; + output += '>\n' + childOutput + indent(indentation) + `\n`; } else { output += ' />\n'; }