aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js5
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;
}