From f9047346957170bbb2d938bd5f45b6f58942cfdc Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 8 Jan 2015 00:36:40 +1100 Subject: [PATCH] rename prettyPrint to the more descriptive prettyCall --- lib/6to5/generation/generators/expressions.js | 4 ++-- lib/6to5/transformation/transformers/react.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/6to5/generation/generators/expressions.js b/lib/6to5/generation/generators/expressions.js index 536129ae56..ebe3fd9b7c 100644 --- a/lib/6to5/generation/generators/expressions.js +++ b/lib/6to5/generation/generators/expressions.js @@ -62,7 +62,7 @@ exports.CallExpression = function (node, print) { var separator = ","; - if (node._prettyPrint) { + if (node._prettyCall) { separator += "\n"; this.newline(); this.indent(); @@ -74,7 +74,7 @@ exports.CallExpression = function (node, print) { separator: separator }); - if (node._prettyPrint) { + if (node._prettyCall) { this.newline(); this.dedent(); } diff --git a/lib/6to5/transformation/transformers/react.js b/lib/6to5/transformation/transformers/react.js index b19c39f22c..fd0d7140ac 100644 --- a/lib/6to5/transformation/transformers/react.js +++ b/lib/6to5/transformation/transformers/react.js @@ -166,7 +166,7 @@ exports.XJSElement = { } if (callExpr.arguments.length >= 3) { - callExpr._prettyPrint = true; + callExpr._prettyCall = true; } return t.inherits(callExpr, node);