diff options
author | Mihai Bazon <mihai@bazon.net> | 2014-01-08 11:39:24 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2014-01-08 11:39:24 +0200 |
commit | c3087dd179bcef93626ae8227bf8f0ac5baa15a2 (patch) | |
tree | 44354c192656c9ecc1692d3bea13f3566fdeedc9 | |
parent | 2c305af478b95ccdb21ac9ed680cc1a0f58fd7d4 (diff) | |
download | tracifyjs-c3087dd179bcef93626ae8227bf8f0ac5baa15a2.tar.gz tracifyjs-c3087dd179bcef93626ae8227bf8f0ac5baa15a2.zip |
Better process_for_angular before other statement reductions. #395
-rw-r--r-- | lib/compress.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compress.js b/lib/compress.js index 488818c9..7df66938 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -199,6 +199,9 @@ merge(Compressor.prototype, { var CHANGED; do { CHANGED = false; + if (compressor.option("angular")) { + statements = process_for_angular(statements); + } statements = eliminate_spurious_blocks(statements); if (compressor.option("dead_code")) { statements = eliminate_dead_code(statements, compressor); @@ -212,9 +215,6 @@ merge(Compressor.prototype, { if (compressor.option("join_vars")) { statements = join_consecutive_vars(statements, compressor); } - if (compressor.option("angular")) { - statements = process_for_angular(statements); - } } while (CHANGED); if (compressor.option("negate_iife")) { |