Permalink
Browse files

Update uglify-js to latest master

Fixes #32.
  • Loading branch information...
1 parent 62a749b commit 45133bfdadc8f5056cb93423d2eedad3aed936bf @lautis committed May 16, 2012
Showing with 88 additions and 1,401 deletions.
  1. +2 −3 lib/uglifier.rb
  2. +85 −1,397 lib/uglify.js
  3. +1 −1 vendor/uglifyjs
View
@@ -78,9 +78,7 @@ def compile(source)
JS
end
- if @options[:mangle]
- js << "ast = UglifyJS.uglify.ast_mangle(ast, #{MultiJson.dump(mangle_options)});"
- end
+ js << "ast = UglifyJS.uglify.ast_mangle(ast, #{MultiJson.dump(mangle_options)});"
if @options[:squeeze]
js << "ast = UglifyJS.uglify.ast_squeeze(ast, #{MultiJson.dump(squeeze_options)});"
@@ -106,6 +104,7 @@ def compile(source)
def mangle_options
{
+ "mangle" => @options[:mangle],
"toplevel" => @options[:toplevel],
"defines" => {},
"except" => @options[:except],
Oops, something went wrong.

0 comments on commit 45133bf

Please sign in to comment.