| Index: lib/compiler/implementation/js/printer.dart
|
| diff --git a/lib/compiler/implementation/js/printer.dart b/lib/compiler/implementation/js/printer.dart
|
| index 287961218b1ac7c71132320e063675f6286a0935..b13ef55add526743a5ec1630d627cb9270bee178 100644
|
| --- a/lib/compiler/implementation/js/printer.dart
|
| +++ b/lib/compiler/implementation/js/printer.dart
|
| @@ -3,7 +3,7 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| class Printer implements NodeVisitor {
|
| - final bool shouldCompressOutput = false;
|
| + final bool shouldCompressOutput;
|
| leg.Compiler compiler;
|
| var positionElement;
|
| leg.CodeBuffer outBuffer;
|
| @@ -13,7 +13,8 @@ class Printer implements NodeVisitor {
|
| final DanglingElseVisitor danglingElseVisitor;
|
|
|
| Printer(leg.Compiler compiler, this.positionElement)
|
| - : this.compiler = compiler,
|
| + : shouldCompressOutput = compiler.enableMinification,
|
| + this.compiler = compiler,
|
| outBuffer = new leg.CodeBuffer(),
|
| danglingElseVisitor = new DanglingElseVisitor(compiler);
|
|
|
|
|