diff options
author | kzc <zaxxon2011@gmail.com> | 2015-06-14 17:44:26 -0400 |
---|---|---|
committer | kzc <zaxxon2011@gmail.com> | 2015-06-14 17:44:26 -0400 |
commit | f47b2b52a5642cf7991329a2b635f8f1168dc8c9 (patch) | |
tree | f13ea1a72709ef66fd0ed9af9901dc27189ab7f8 /lib/compress.js | |
parent | fedb6191a11c2d868c23362e10f23795aae3ca3e (diff) | |
download | tracifyjs-f47b2b52a5642cf7991329a2b635f8f1168dc8c9.tar.gz tracifyjs-f47b2b52a5642cf7991329a2b635f8f1168dc8c9.zip |
operator && and || optimization: add "else" before "if" as intended
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 34233143..343edc46 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2118,7 +2118,7 @@ merge(Compressor.prototype, { } } } - if (self.operator == "||") { + else if (self.operator == "||") { var ll = self.left.evaluate(compressor); var rr = self.right.evaluate(compressor); if (ll.length > 1) { |