From b8aed9878a93cee1193ca5e8b03f37b76ce0f4dc Mon Sep 17 00:00:00 2001 From: Shrey Banga Date: Mon, 13 Jun 2016 17:08:41 -0700 Subject: [PATCH] Address feedback --- bin/uglifyjs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/uglifyjs b/bin/uglifyjs index 844c139c..9d139149 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -214,16 +214,14 @@ if (ARGS.quotes === true) { if (ARGS.mangle_props === true) { ARGS.mangle_props = 1; -} - -if (ARGS.mangle_props === "unquoted") { +} else if (ARGS.mangle_props === "unquoted") { ARGS.mangle_props = 2; } var OUTPUT_OPTIONS = { - beautify : BEAUTIFY ? true : false, - preamble : ARGS.preamble || null, - quote_style : ARGS.quotes != null ? ARGS.quotes : 0, + beautify : BEAUTIFY ? true : false, + preamble : ARGS.preamble || null, + quote_style : ARGS.quotes != null ? ARGS.quotes : 0, }; if (ARGS.mangle_props == 2) {