diff options
author | kzc <zaxxon2011@gmail.com> | 2016-02-27 15:33:10 -0500 |
---|---|---|
committer | kzc <zaxxon2011@gmail.com> | 2016-02-27 15:33:10 -0500 |
commit | 102d1b9137353086f11fe2fc7abf9095042d4306 (patch) | |
tree | d42a28f1daa06b0cecc308935330d1320f633739 /lib/scope.js | |
parent | 294861ba96aaf61591e2158c9e9ffad50f58625d (diff) | |
download | tracifyjs-102d1b9137353086f11fe2fc7abf9095042d4306.tar.gz tracifyjs-102d1b9137353086f11fe2fc7abf9095042d4306.zip |
#877 Ignore mangle sort option
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/scope.js b/lib/scope.js index ace25894..5ab775a3 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -372,7 +372,7 @@ AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){ return defaults(options, { except : [], eval : false, - sort : false, + sort : false, // Ignored. Flag retained for backwards compatibility. toplevel : false, screw_ie8 : false, keep_fnames : false @@ -415,9 +415,6 @@ AST_Toplevel.DEFMETHOD("mangle_names", function(options){ a.push(symbol); } }); - if (options.sort) a.sort(function(a, b){ - return b.references.length - a.references.length; - }); to_mangle.push.apply(to_mangle, a); return; } |