Better process_for_angular before other statement reductions. #395

This commit is contained in:
Mihai Bazon
2014-01-08 11:39:24 +02:00
parent 2c305af478
commit c3087dd179

View File

@@ -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")) {