fix prettyCall generation option

This commit is contained in:
Sebastian McKenzie 2015-05-21 01:43:02 +01:00
parent 82b5479436
commit 92157161f0

View File

@ -79,7 +79,9 @@ export function CallExpression(node, print) {
var separator = ",";
if (node._prettyCall && !this.format.retainLines) {
var isPrettyCall = node._prettyCall && !this.format.retainLines;
if (isPrettyCall) {
separator += "\n";
this.newline();
this.indent();
@ -89,7 +91,7 @@ export function CallExpression(node, print) {
print.list(node.arguments, { separator: separator });
if (node._prettyCall) {
if (isPrettyCall) {
this.newline();
this.dedent();
}