aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js6
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")) {