renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it doesn't break IE9+

This commit is contained in:
Michał Gołębiowski
2013-03-25 16:11:07 +01:00
parent 478bf4dbdd
commit 75f0bbe6e8
3 changed files with 11 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ SymbolDef.prototype = {
mangle: function(options) {
if (!this.mangled_name && !this.unmangleable(options)) {
var s = this.scope;
if (this.orig[0] instanceof AST_SymbolLambda && !options.screw_ie)
if (this.orig[0] instanceof AST_SymbolLambda && !options.screw_ie8)
s = s.parent_scope;
this.mangled_name = s.next_mangled(options);
}
@@ -343,7 +343,7 @@ AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){
eval : false,
sort : false,
toplevel : false,
screw_ie : false
screw_ie8 : false
});
});